mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue