Skip to content

Commit

Permalink
check if categories are part of selection before filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
Guite committed Feb 16, 2024
1 parent 5d7f189 commit 204e46e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class CollectionFilterHelper {
}
«IF categorisable»
if ('catId' === $k) {
if (0 < (int) $v) {
if (0 < (int) $v && in_array('tblCategories', $qb->getAllAliases(), true)) {
// single category filter
$qb->andWhere('tblCategories.category = :category')
->setParameter('category', $v);
Expand Down

0 comments on commit 204e46e

Please sign in to comment.