mirror of https://github.com/MISP/MISP
fix: [Event:set_filter_value] Reset array indexing
parent
6ae72280b2
commit
c9dafbf412
|
@ -2996,6 +2996,8 @@ class Event extends AppModel
|
|||
$tmpConditions['OR']['OR']['Attribute.value1'][2], // remove part2 from value1
|
||||
$tmpConditions['OR']['OR']['Attribute.value2'][1] // remove part1 from value2
|
||||
);
|
||||
$tmpConditions['OR']['OR']['Attribute.value1'] = array_values($tmpConditions['OR']['OR']['Attribute.value1']);
|
||||
$tmpConditions['OR']['OR']['Attribute.value2'] = array_values($tmpConditions['OR']['OR']['Attribute.value2']);
|
||||
$conditions['AND'][] = $tmpConditions;
|
||||
}
|
||||
return $conditions;
|
||||
|
|
Loading…
Reference in New Issue