mirror of https://github.com/MISP/MISP
Merge pull request #3530 from chkp-aliaksandrt/fix-object-add-if-uuid-is-passed-as-eventid
chg: [bug] Fixed wrong event lookup in case the uuid is passed as an eventId.pull/3626/head
commit
ab1a6f6ecb
|
@ -105,7 +105,7 @@ class ObjectsController extends AppController
|
|||
$eventFindParams = array(
|
||||
'recursive' => -1,
|
||||
'fields' => array('Event.id', 'Event.uuid', 'Event.orgc_id'),
|
||||
'conditions' => array('Event.id' => $eventId)
|
||||
'conditions' => array()
|
||||
);
|
||||
|
||||
if (!empty($templateId) && Validation::uuid($templateId)) {
|
||||
|
|
Loading…
Reference in New Issue