fix: [events:restsearch] Correctly unset variable by reference after looping

- This avoid attributes being overridden others when using `includeAnalystData` parameter
pull/7976/merge
Sami Mokaddem 2024-03-07 10:52:54 +01:00
parent 1c7121b881
commit 3dcf54aad5
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 0 deletions

View File

@ -2257,6 +2257,7 @@ class Event extends AppModel
}
}
$event['Attribute'] = array_values($event['Attribute']);
unset($attribute);
}
if (!empty($event['Object'])) {
if (!$sharingGroupReferenceOnly) {