fix: [typo] causing the object saving to fail

pull/8530/head
iglocska 2022-08-04 19:55:20 +02:00
parent fc3439acc1
commit 3e8be53979
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ class MispObject extends AppModel
$object = $this->data['Object'];
$this->Attribute->Correlation->updateContainedCorrelations($object, 'object');
}
if (!empty($this->data['Object']['deleted'] && !$created)) {
if (!empty($this->data['Object']['deleted']) && !$created) {
$attributes_to_delete = $this->Attribute->find('all', [
'recursive' => -1,
'conditions' => [