Merge pull request #46092 from nextcloud/backport-45958

[stable28] fix(files_versions): renaming file version when its not a string
This commit is contained in:
Ferdinand Thiessen 2024-06-27 00:55:56 +02:00 committed by GitHub
commit 3eae9da2e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 8 additions and 7 deletions

View file

@ -108,7 +108,8 @@ function formatVersion(version: any, fileInfo: any): Version {
return {
fileId: fileInfo.id,
label: version.props['version-label'],
// If version-label is defined make sure it is a string (prevent issue if the label is a number an PHP returns a number then)
label: version.props['version-label'] && String(version.props['version-label']),
filename: version.filename,
basename: moment(mtime).format('LLL'),
mime: version.mime,

4
dist/core-common.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long