Skip to content

Commit

Permalink
Merge pull request #25369 from nextcloud/fix/query_str_arrays_as_str_…
Browse files Browse the repository at this point in the history
…array

The objectid is a string
  • Loading branch information
ChristophWurst committed Jan 29, 2021
2 parents d470e29 + 7e727a1 commit 395826b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/SystemTag/SystemTagObjectMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function getTagIdsForObjects($objIds, string $objectType): array {
->from(self::RELATION_TABLE)
->where($query->expr()->in('objectid', $query->createParameter('objectids')))
->andWhere($query->expr()->eq('objecttype', $query->createParameter('objecttype')))
->setParameter('objectids', $objIds, IQueryBuilder::PARAM_INT_ARRAY)
->setParameter('objectids', $objIds, IQueryBuilder::PARAM_STR_ARRAY)
->setParameter('objecttype', $objectType)
->addOrderBy('objectid', 'ASC')
->addOrderBy('systemtagid', 'ASC');
Expand Down

0 comments on commit 395826b

Please sign in to comment.