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()); } }