fix: Fixed invalid variable name

pull/2489/head
iglocska 2017-08-23 14:05:34 +02:00
parent d3d6566b16
commit 62ecb49f58
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class ObjectReferencesController extends AppController {
$temp = $this->ObjectReference->Object->find('first', array(
'recursive' => -1,
'fields' => array('Object.id'),
'conditions' => array('Object.uuid' => $id)
'conditions' => array('Object.uuid' => $objectId)
));
if (empty($temp)) throw new NotFoundException('Invalid Object');
$objectId = $temp['Object']['id'];