fix: [filters] Negative tag filters ignored event tags on the attriute search

- as reported by @hel10wor1d
pull/4053/head
iglocska 2019-01-25 08:35:50 +01:00
parent 55fb4e9d17
commit d64d57feea
1 changed files with 3 additions and 1 deletions

View File

@ -2821,6 +2821,7 @@ class Attribute extends AppModel
)
)
);
if (!empty($options['includeProposals'])) {
$this->bindModel(
array('hasMany' => array(
@ -3766,7 +3767,7 @@ class Attribute extends AppModel
'value' => array('function' => 'set_filter_value'),
'category' => array('function' => 'set_filter_simple_attribute'),
'type' => array('function' => 'set_filter_simple_attribute'),
'tags' => array('function' => 'set_filter_tags'),
'tags' => array('function' => 'set_filter_tags', 'pop' => true),
'uuid' => array('function' => 'set_filter_uuid'),
'deleted' => array('function' => 'set_filter_deleted'),
'timestamp' => array('function' => 'set_filter_timestamp'),
@ -3779,6 +3780,7 @@ class Attribute extends AppModel
'ignore' => array('function' => 'set_filter_ignore'),
'from' => array('function' => 'set_filter_timestamp'),
'to' => array('function' => 'set_filter_timestamp'),
'tags' => array('function' => 'set_filter_tags'),
'last' => array('function' => 'set_filter_timestamp', 'pop' => true),
'timestamp' => array('function' => 'set_filter_timestamp', 'pop' => true),
'event_timestamp' => array('function' => 'set_filter_timestamp', 'pop' => true),