diff --git a/core/lib/Drupal/Core/Entity/ContentEntityBase.php b/core/lib/Drupal/Core/Entity/ContentEntityBase.php index 850489b..e38ab5a 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityBase.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityBase.php @@ -166,9 +166,9 @@ public function __construct(array $values, $entity_type, $bundle = FALSE, $trans */ public function setNewRevision($value = TRUE) { if ($value) { - // When saving a new revision, set any existing revision ID to NULL so as to - // ensure that a new revision will actually be created. - $this->set($this->getEntityType()->getKey('revision_id'), NULL); + // When saving a new revision, set any existing revision ID to NULL so as + // to ensure that a new revision will actually be created. + $this->set($this->getEntityType()->getKey('revision'), NULL); } $this->newRevision = $value; }