mirror of https://github.com/nextcloud/server
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:
parent
a88c1bdfb6
commit
b277841cb4
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue