diff --git a/lib/Service/DocumentService.php b/lib/Service/DocumentService.php index ee82baf8216..f88988d5221 100644 --- a/lib/Service/DocumentService.php +++ b/lib/Service/DocumentService.php @@ -287,7 +287,7 @@ public function autosave($file, $documentId, $version, $autoaveDocument, $force $savedEtag = $file->getEtag(); $lastMTime = $document->getLastSavedVersionTime(); - if ($lastMTime > 0 && $savedEtag !== $document->getLastSavedVersionEtag() && $force === false) { + if ($lastMTime > 0 && $savedEtag !== $document->getLastSavedVersionEtag() && $lastMTime !== $file->getMtime() && $force === false) { if (!$this->cache->get('document-save-lock-' . $documentId)) { throw new DocumentSaveConflictException('File changed in the meantime from outside'); } else {