Skip to content

Commit

Permalink
Fix tag query for autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
samwilson authored Jan 23, 2023
1 parent 9dd7f33 commit 77d823a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Repository/TagRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ public function search(string $term, int $pageNum, int $pageSize, ?User $user =
->setParameter('q', "%$term%")
->andWhere('p.view_group IN (' . $groupList . ')')
->orderBy('t.title', 'DESC')
->groupBy('t.id')
->setMaxResults($pageSize)
->setFirstResult(($pageNum - 1) * $pageSize)
->getQuery()
Expand Down

0 comments on commit 77d823a

Please sign in to comment.