mirror of https://github.com/MISP/MISP
chg: [events] Enables index search for object. Fix #6961
parent
37a724ddf3
commit
d54afd12d6
|
@ -1741,6 +1741,9 @@ class EventsController extends AppController
|
|||
|
||||
// search for all attributes in object
|
||||
foreach ($event['Object'] as $k => $object) {
|
||||
if ($this->__valueInFieldAttribute($object, ['id', 'uuid', 'name', 'comment'], $searchFor)) {
|
||||
continue;
|
||||
}
|
||||
foreach ($object['Attribute'] as $k2 => $attribute) {
|
||||
if (!$this->__valueInFieldAttribute($attribute, $filterValue, $searchFor)) {
|
||||
unset($event['Object'][$k]['Attribute'][$k2]);
|
||||
|
|
Loading…
Reference in New Issue