Issue #2977362: Revision user incorrectly appears as anonymous user when node author is cancelled
Compare changes
@@ -763,7 +763,8 @@ protected function doPreSave(EntityInterface $entity) {
@@ -763,7 +763,8 @@ protected function doPreSave(EntityInterface $entity) {
$original_same_as_current = $entity->getOriginal()?->getRevisionId() == $entity->getLoadedRevisionId();
if ($previously_default_revision && $no_longer_default && $original_same_as_current && $not_new_revision) {
throw new EntityStorageException("An existing default revision of the '{$this->entityTypeId}' entity type can not be changed to a non-default revision.");