fix: [bulk update] objects fixed

pull/9432/head
iglocska 2023-11-23 09:53:56 +01:00
parent 05e3819260
commit 52586959d7
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 0 additions and 9 deletions

View File

@ -1219,15 +1219,6 @@ class MispObject extends AppModel
$attributes[] = $result;
}
}
foreach ($object['Attribute'] as $k => $attribute) {
if (!empty($object['deleted'])) {
$attribute['deleted'] = 1;
}
$result = $this->Attribute->editAttribute($attribute, $event, $user, $object['id'], false, $force);
if (is_array($result)) {
$attributes[] = $result;
}
}
$this->Attribute->editAttributeBulk($attributes, $event, $user);
$this->Attribute->editAttributePostProcessing($attributes, $event, $user);
}