Merge branch 'develop' of github.com:MISP/MISP into develop

pull/8530/head
Sami Mokaddem 2022-08-04 14:51:42 +02:00
commit 4e8fc8dd63
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 5 additions and 7 deletions

View File

@ -96,14 +96,12 @@ class AttributesController extends AppController
[],
true
);
if (!empty($temp)) {
foreach ($temp as &$t) {
$t['info'] = $t['Event']['info'];
$t['org_id'] = $t['Event']['org_id'];
$t['date'] = $t['Event']['date'];
}
$attribute['Event']['RelatedAttribute'][$attribute['Attribute']['id']] = $temp;
foreach ($temp as &$t) {
$t['info'] = $t['Event']['info'];
$t['org_id'] = $t['Event']['org_id'];
$t['date'] = $t['Event']['date'];
}
$attribute['Event']['RelatedAttribute'][$attribute['Attribute']['id']] = $temp;
}
list($attributes, $sightingsData) = $this->__searchUI($attributes);