fix: [pull] duplicate detection fixed

- allow duplicates for deleted attributes, not for live ones
pull/9432/head
iglocska 2023-11-23 10:11:47 +01:00
parent 52586959d7
commit 9b9a4ecd7f
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -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);