mirror of https://github.com/MISP/MISP
fix: Fixed invalid removal of attributes based on blocked tags using the /attributes/restSearch API
parent
824ebb5aea
commit
7df39a5dd1
|
@ -2787,6 +2787,9 @@ class Attribute extends AppModel {
|
|||
}
|
||||
if (!empty($tagArray[1])) {
|
||||
$temp['AND']['NOT'] = $this->__createTagSubQuery($tagArray[1], true);
|
||||
if ($limitAttributeHitsTo == 'attribute') {
|
||||
$temp['AND']['NOT'] = $this->__createTagSubQuery($tagArray[1], true, 'Attribute', $limitAttributeHitsTo);
|
||||
}
|
||||
}
|
||||
$conditions['AND'][] = $temp;
|
||||
return $conditions;
|
||||
|
|
Loading…
Reference in New Issue