diff --git a/app/Model/Event.php b/app/Model/Event.php index 93d455f38..448594578 100755 --- a/app/Model/Event.php +++ b/app/Model/Event.php @@ -3840,7 +3840,7 @@ class Event extends AppModel if (!empty($data['Event']['Attribute'])) { $attributeHashes = []; foreach ($data['Event']['Attribute'] as $attribute) { - if (empty($attribute['deleted'])) { + if (!empty($attribute['deleted'])) { $this->Attribute->captureAttribute($attribute, $this->id, $user, 0, null, $parentEvent); } else { $attributeHash = sha1($attribute['value'] . '|' . $attribute['type'] . '|' . $attribute['category'], true);