diff --git a/app/Controller/EventsController.php b/app/Controller/EventsController.php index 9550c9106..1a3f3df9e 100644 --- a/app/Controller/EventsController.php +++ b/app/Controller/EventsController.php @@ -2775,7 +2775,7 @@ class EventsController extends AppController } } $requested_attributes = array('uuid', 'event_id', 'category', 'type', - 'value', 'comment', 'to_ids', 'timestamp'); + 'value', 'comment', 'to_ids', 'timestamp', 'object_relation'); $requested_obj_attributes = array('uuid', 'name', 'meta-category'); if ($includeContext) { $requested_attributes[] = 'attribute_tag'; diff --git a/app/Model/Event.php b/app/Model/Event.php index d570cd295..9ed2722d6 100755 --- a/app/Model/Event.php +++ b/app/Model/Event.php @@ -2126,7 +2126,7 @@ class Event extends AppModel } $params = array( 'conditions' => $conditions, //array of conditions - 'fields' => array('Attribute.event_id', 'Attribute.distribution', 'Attribute.category', 'Attribute.type', 'Attribute.value', 'Attribute.comment', 'Attribute.uuid', 'Attribute.to_ids', 'Attribute.timestamp', 'Attribute.id'), + 'fields' => array('Attribute.event_id', 'Attribute.distribution', 'Attribute.category', 'Attribute.type', 'Attribute.value', 'Attribute.comment', 'Attribute.uuid', 'Attribute.to_ids', 'Attribute.timestamp', 'Attribute.id', 'Attribute.object_relation'), 'order' => array('Attribute.uuid ASC'), 'enforceWarninglist' => $enforceWarninglist, 'flatten' => true