fix: Use timestamp instead of revision id in files_versions metadata API

Signed-off-by: Louis Chemineau <louis@chmn.me>
pull/46710/head
Louis Chemineau 2024-07-24 09:34:13 +07:00
parent 55f81eae13
commit 6e76aed867
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

@ -75,7 +75,7 @@ class VersionFile implements IFile {
$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);