fix: [behavior:notifyAdmins] Typo resetting a variable

pull/121/head
Sami Mokaddem 2022-12-08 10:25:13 +01:00
parent f3ee43ed46
commit 4ab9761fb5
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class NotifyAdminsBehavior extends Behavior
unset($changedFields['meta_fields']); unset($changedFields['meta_fields']);
} }
} }
$originalFields = $entity->isNew() ? [] : $entity->isNew(); $originalFields = $entity->isNew() ? [] : $originalFields;
$data = [ $data = [
'original' => $this->_serializeFields($originalFields), 'original' => $this->_serializeFields($originalFields),
'changed' => $this->_serializeFields($changedFields), 'changed' => $this->_serializeFields($changedFields),