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
Andras Iklody 2018-09-06 00:10:54 +02:00 committed by GitHub
commit ab1a6f6ecb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {