Merge pull request #25374 from nextcloud/backport/25369/stable20

[stable20] The objectid is a string
This commit is contained in:
Roeland Jago Douma 2021-01-29 08:56:39 +01:00 committed by GitHub
commit 2d63998bb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class SystemTagObjectMapper implements ISystemTagObjectMapper {
->from(self::RELATION_TABLE) ->from(self::RELATION_TABLE)
->where($query->expr()->in('objectid', $query->createParameter('objectids'))) ->where($query->expr()->in('objectid', $query->createParameter('objectids')))
->andWhere($query->expr()->eq('objecttype', $query->createParameter('objecttype'))) ->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) ->setParameter('objecttype', $objectType)
->addOrderBy('objectid', 'ASC') ->addOrderBy('objectid', 'ASC')
->addOrderBy('systemtagid', 'ASC'); ->addOrderBy('systemtagid', 'ASC');