Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>
  • Loading branch information
hschletz authored and skjnldsv committed Feb 23, 2024
commit b277841cb4a46124dc79e3ece6ad4dbfee40c905
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