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>
This commit is contained in:
hschletz 2024-01-29 11:57:40 +01:00 committed by John Molakvoæ
parent a88c1bdfb6
commit b277841cb4
1 changed files with 1 additions and 1 deletions

View File

@ -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;