mirror of https://github.com/MISP/MISP
fix: Fixed invalid lookup for adding object references
parent
961bc76393
commit
412b2bcfb1
|
@ -93,7 +93,7 @@ class ObjectReferencesController extends AppController {
|
|||
if ($this->_isRest()) {
|
||||
$object = $this->ObjectReference->find("first", array(
|
||||
'recursive' => -1,
|
||||
'conditions' => array('ObjectReference' => $this->ObjectReference->id)
|
||||
'conditions' => array('ObjectReference.id' => $this->ObjectReference->id)
|
||||
));
|
||||
return $this->RestResponse->viewData($object, $this->response->type());
|
||||
} else if ($this->request->is('ajax')) {
|
||||
|
|
Loading…
Reference in New Issue