diff --git a/app/Model/Attribute.php b/app/Model/Attribute.php index 193129216..fd65cc66d 100644 --- a/app/Model/Attribute.php +++ b/app/Model/Attribute.php @@ -3633,7 +3633,8 @@ class Attribute extends AppModel 'type' => array('function' => 'set_filter_simple_attribute'), 'tags' => array('function' => 'set_filter_tags'), 'uuid' => array('function' => 'set_filter_uuid'), - 'deleted' => array('function' => 'set_filter_deleted') + 'deleted' => array('function' => 'set_filter_deleted'), + 'timestamp' => array('function' => 'set_filter_timestamp'), ), 'Event' => array( 'eventid' => array('function' => 'set_filter_eventid'), @@ -3643,7 +3644,6 @@ class Attribute extends AppModel 'from' => array('function' => 'set_filter_timestamp'), 'to' => array('function' => 'set_filter_timestamp'), 'last' => array('function' => 'set_filter_timestamp'), - 'timestamp' => array('function' => 'set_filter_timestamp'), 'publish_timestamp' => array('function' => 'set_filter_timestamp'), 'org' => array('function' => 'set_filter_org'), 'uuid' => array('function' => 'set_filter_uuid'), diff --git a/app/Model/Event.php b/app/Model/Event.php index 4771d60e6..36575cac7 100755 --- a/app/Model/Event.php +++ b/app/Model/Event.php @@ -2106,9 +2106,14 @@ class Event extends AppModel } elseif ($options['filter'] == 'to') { $conditions['AND']['Event.date <='] = $params['to']; } else { + if (empty($options['scope'])) { + $scope = 'Attribute'; + } else { + $scope = $options['scope']; + } $filters = array( 'timestamp' => array( - 'Event.timestamp' + $scope . '.timestamp' ), 'publish_timestamp' => array( 'Event.publish_timestamp' diff --git a/app/files/misp-galaxy b/app/files/misp-galaxy index 6ab7eac37..6b7d65f6b 160000 --- a/app/files/misp-galaxy +++ b/app/files/misp-galaxy @@ -1 +1 @@ -Subproject commit 6ab7eac3708f3647abc0b1d8f26ac0647204a3c4 +Subproject commit 6b7d65f6b3e64f282e5b142b1ad1bd14b211869b diff --git a/app/files/taxonomies b/app/files/taxonomies index b7ebd3248..7f36c65c5 160000 --- a/app/files/taxonomies +++ b/app/files/taxonomies @@ -1 +1 @@ -Subproject commit b7ebd32485963c410b4274f8051f3236325c4b2f +Subproject commit 7f36c65c549c456e902413d266c93917a4d6b8d9