behavior error or just plain wrong on our side.
pull/63/head
Noud de Brouwer 2013-01-16 15:27:15 +00:00
parent 4073bd9b65
commit 755f19c560
1 changed files with 1 additions and 0 deletions

View File

@ -500,6 +500,7 @@ class AttributesController extends AppController {
}
// reposition to get the attribute.id with given uuid
// Notice (8): Undefined index: uuid [APP/Controller/AttributesController.php, line 502]
$existingAttribute = $this->Attribute->findByUuid($this->request->data['Attribute']['uuid']);
if (count($existingAttribute)) {
$this->request->data['Attribute']['id'] = $existingAttribute['Attribute']['id'];