diff --git a/core/lib/Drupal/Core/Entity/EntityStorageBase.php b/core/lib/Drupal/Core/Entity/EntityStorageBase.php index 880bc9b..3fb8c41 100644 --- a/core/lib/Drupal/Core/Entity/EntityStorageBase.php +++ b/core/lib/Drupal/Core/Entity/EntityStorageBase.php @@ -431,7 +431,7 @@ protected function doPreSave(EntityInterface $entity) { } // Load the previous revision, if any. - if ($id_exists && !isset($entity->previous)) { + if (isset($entity->original_revision) && !isset($entity->previous)) { $entity->previous = $this->loadRevision($entity->original_revision); unset($entity->original_revision); }