diff --git a/core/lib/Drupal/Core/Entity/DatabaseStorageControllerNG.php b/core/lib/Drupal/Core/Entity/DatabaseStorageControllerNG.php index 97d0f30..dc88c70 100644 --- a/core/lib/Drupal/Core/Entity/DatabaseStorageControllerNG.php +++ b/core/lib/Drupal/Core/Entity/DatabaseStorageControllerNG.php @@ -438,7 +438,8 @@ protected function saveRevision(EntityInterface $entity) { ->execute(); } - foreach ($entity->getTranslationLanguages(TRUE) as $langcode => $language) { + $languages = $this->dataTable ? $entity->getTranslationLanguages(TRUE) : array($default_langcode => $entity->language()); + foreach ($languages as $langcode => $language) { $translation = $entity->getTranslation($langcode, FALSE); $record = $this->mapToRevisionStorageRecord($translation); $record->langcode = $langcode;