diff --git a/lib/Service/DocumentService.php b/lib/Service/DocumentService.php index 39944996a00..f8532b34cf7 100644 --- a/lib/Service/DocumentService.php +++ b/lib/Service/DocumentService.php @@ -156,7 +156,7 @@ public function createDocument(File $file): Document { $document->setLastSavedVersion(0); $document->setLastSavedVersionTime($file->getMTime()); $document->setLastSavedVersionEtag($file->getEtag()); - $document->setBaseVersionEtag($file->getEtag()); + $document->setBaseVersionEtag(uniqid()); try { /** @var Document $document */ $document = $this->documentMapper->insert($document);