Merge branch '2.4' of https://github.com/MISP/MISP into 2.4

pull/1860/head
Iglocska 2017-01-21 13:16:33 +01:00
commit b1a65d400b
1 changed files with 1 additions and 1 deletions

View File

@ -1863,7 +1863,7 @@ class Event extends AppModel {
unset($data['Event']['SharingGroup']);
}
if (isset($data['Event']['Attribute'])) {
foreach ($data['Event']['Attribute'] as $k => &$a) {
foreach ($data['Event']['Attribute'] as $k => $a) {
unset($data['Event']['Attribute']['id']);
if (isset($a['distribution']) && $a['distribution'] == 4) {
$data['Event']['Attribute'][$k]['sharing_group_id'] = $this->SharingGroup->captureSG($data['Event']['Attribute'][$k]['SharingGroup'], $user);