From f8f02b053a2fbf8676a47c0967c1948fa0adcd9a Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Mon, 27 Nov 2023 10:25:51 +0100 Subject: [PATCH] fix: [Attribute:EditPostProcessing] Make sure the ID is set --- app/Model/Attribute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Model/Attribute.php b/app/Model/Attribute.php index d57b2ef70..0d21bc3ea 100644 --- a/app/Model/Attribute.php +++ b/app/Model/Attribute.php @@ -2798,7 +2798,7 @@ class Attribute extends AppModel // Let's recorrelate the event foreach ($attributes as $attribute) { if (!empty($attribute['_materialChange'])) { - $this->Correlation->generateCorrelation(false, $event['Event']['id'], $attribute['id']); + $this->Correlation->generateCorrelation(false, $event['Event']['id'], $attributeId); } } // Instead of incrementing / decrementing the event