diff options
author | hschletz <holger.schletz@web.de> | 2024-01-29 11:57:40 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-02-23 20:54:16 +0000 |
commit | 4bc9ba2a03c2be478580c2c9ff5fbfd2c0b73c3d (patch) | |
tree | e245c3949027208637cee256b5d02a0b5fac34b3 /lib/private/FilesMetadata | |
parent | 5087de9f9892e97f5f72b96230a7067fbe8063ea (diff) | |
download | nextcloud-server-4bc9ba2a03c2be478580c2c9ff5fbfd2c0b73c3d.tar.gz nextcloud-server-4bc9ba2a03c2be478580c2c9ff5fbfd2c0b73c3d.zip |
Fix data type in FilesMetadata::setIntList()
FilesMetadata::setIntList() throws an exception because it uses the incorrect type IMetadataValueWrapper::TYPE_STRING_LIST instead of IMetadataValueWrapper::TYPE_INT_LIST.
Signed-off-by: hschletz <holger.schletz@web.de>
Diffstat (limited to 'lib/private/FilesMetadata')
-rw-r--r-- | lib/private/FilesMetadata/Model/FilesMetadata.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/FilesMetadata/Model/FilesMetadata.php b/lib/private/FilesMetadata/Model/FilesMetadata.php index 629b537dabe..84cb177bc37 100644 --- a/lib/private/FilesMetadata/Model/FilesMetadata.php +++ b/lib/private/FilesMetadata/Model/FilesMetadata.php @@ -480,7 +480,7 @@ class FilesMetadata implements IFilesMetadata { // if value does not exist, or type has changed, we keep on the writing } - $valueWrapper = new MetadataValueWrapper(IMetadataValueWrapper::TYPE_STRING_LIST); + $valueWrapper = new MetadataValueWrapper(IMetadataValueWrapper::TYPE_INT_LIST); $this->metadata[$key] = $valueWrapper->setValueIntList($value)->setIndexed($index); $this->updated = true; |