Skip to content

Commit

Permalink
Fix data type in FilesMetadata::setIntList()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hschletz authored and backportbot[bot] committed Feb 23, 2024
1 parent 5087de9 commit 4bc9ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/FilesMetadata/Model/FilesMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ public function setIntList(string $key, array $value, bool $index = false): IFil
// 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;

Expand Down

0 comments on commit 4bc9ba2

Please sign in to comment.