diff --git a/apps/files_versions/lib/Sabre/VersionFile.php b/apps/files_versions/lib/Sabre/VersionFile.php index 55180a740a9f3..94fc101f05e35 100644 --- a/apps/files_versions/lib/Sabre/VersionFile.php +++ b/apps/files_versions/lib/Sabre/VersionFile.php @@ -75,7 +75,7 @@ public function setMetadataValue(string $key, string $value): bool { $backend = $this->version->getBackend(); if ($backend instanceof IMetadataVersionBackend) { - $backend->setMetadataValue($this->version->getSourceFile(), $this->version->getRevisionId(), $key, $value); + $backend->setMetadataValue($this->version->getSourceFile(), $this->version->getTimestamp(), $key, $value); return true; } elseif ($key === 'label' && $backend instanceof INameableVersionBackend) { $backend->setVersionLabel($this->version, $value);