Skip to content

Commit

Permalink
fix filter for publication
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrands02 committed Aug 9, 2024
1 parent 0c9e864 commit 0967411
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Db/PublicationMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ private function addFilters(IQueryBuilder $queryBuilder, array $filters): IQuery
{
foreach($filters as $key => $filter) {
if(is_array($filter) === false) {
$queryBuilder->andWhere($queryBuilder->expr()->eq($filter, $queryBuilder->createNamedParameter($filter)));
$queryBuilder->andWhere($queryBuilder->expr()->eq($key, $queryBuilder->createNamedParameter($key)));
$queryBuilder->setParameter($key, $filter);
continue;
}

Expand Down

0 comments on commit 0967411

Please sign in to comment.