fix: [Attribute:EditPostProcessing] Make sure the ID is set

pull/9438/head
Sami Mokaddem 2023-11-27 10:25:51 +01:00
parent c14c6efde0
commit f8f02b053a
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

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