diff --git a/EMS/core-bundle/src/Service/DataService.php b/EMS/core-bundle/src/Service/DataService.php index 42b5f26f7..3bb1a3654 100644 --- a/EMS/core-bundle/src/Service/DataService.php +++ b/EMS/core-bundle/src/Service/DataService.php @@ -1255,6 +1255,8 @@ public function trashPutBackAsDraft(ContentType $contentType, string ...$ouuids) $this->lockRevision($revision); $revision->setDraft(true); $this->auditLogger->notice('log.revision.restored', LogRevisionContext::update($revision)); + } else { + $revision->enableSelfUpdate(); } $this->em->persist($revision); }