From 4f31aa9ed137d1473b213d94e810761c5ffec904 Mon Sep 17 00:00:00 2001 From: Michael Stenta Date: Wed, 9 Jun 2021 10:09:47 -0400 Subject: [PATCH] Always set the revision user ID. --- modules/core/entity/farm_entity.module | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/core/entity/farm_entity.module b/modules/core/entity/farm_entity.module index 2c4aa754d..0426ff3dc 100644 --- a/modules/core/entity/farm_entity.module +++ b/modules/core/entity/farm_entity.module @@ -313,6 +313,7 @@ function farm_entity_entity_presave(EntityInterface $entity) { if ($entity->type->entity->shouldCreateNewRevision() && $entity->getEntityType()->isRevisionable()) { /** @var \Drupal\Core\Entity\RevisionLogInterface $entity */ $entity->setNewRevision(TRUE); + $entity->setRevisionUserId(\Drupal::currentUser()->getAccount()->id()); $entity->setRevisionCreationTime(\Drupal::time()->getRequestTime()); } }