From 9b9a4ecd7f424dd771a14a2bcc648ec898859e6c Mon Sep 17 00:00:00 2001 From: iglocska Date: Thu, 23 Nov 2023 10:11:47 +0100 Subject: [PATCH] fix: [pull] duplicate detection fixed - allow duplicates for deleted attributes, not for live ones --- app/Model/Event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);