diff --git a/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php b/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php index e74e571..25d4a5a 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php @@ -228,9 +228,9 @@ protected function hasFieldValueChanged(FieldDefinitionInterface $field_definiti } foreach ($langcodes as $langcode) { $items = $entity->getTranslation($langcode)->get($field_name)->filterEmptyItems(); - $originalItems = $original->getTranslation($langcode)->get($field_name)->filterEmptyItems(); + $original_items = $original->getTranslation($langcode)->get($field_name)->filterEmptyItems(); // If the field items are not equal, we need to save. - if (!$items->equals($originalItems)) { + if (!$items->equals($original_items)) { return TRUE; } }