diff --git a/core/modules/content_moderation/src/Plugin/Field/ModerationStateFieldItemList.php b/core/modules/content_moderation/src/Plugin/Field/ModerationStateFieldItemList.php index 01b95da..e9ecb6d 100644 --- a/core/modules/content_moderation/src/Plugin/Field/ModerationStateFieldItemList.php +++ b/core/modules/content_moderation/src/Plugin/Field/ModerationStateFieldItemList.php @@ -58,7 +58,7 @@ protected function getModerationState() { } } - if (!empty($entity->getLoadedRevisionId())) { + if (!empty($entity->getLoadedRevisionId()) && $entity->getLoadedRevisionId() != $entity->getRevisionId()) { $loaded_revision = \Drupal::entityTypeManager() ->getStorage($entity->getEntityTypeId()) ->loadRevision($entity->getLoadedRevisionId());