Fix incorrect evaluation of transport filter setting
This commit is contained in:
1 parent
3f6fa5c115
commit
ffe7c8b233
2 files changed
+2
-2
No files matched your search
@@ -223,7 +223,7 @@ abstract class AbstractRepository extends Repository
|
||||
protected function addTransportationFilterConditions(QueryBuilder $qb, array $filterSettings): void
|
||||
{
|
||||
// Transportation
|
||||
if (null !== $filterSettings['bus']) {
|
||||
if (false === empty($filterSettings['bus'])) {
|
||||
$qb->andWhere($qb->expr()->eq('date.bus_available', 1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ class ProductRepository extends AbstractRepository
|
||||
|
||||
if (count($excludedConceptUids) > 0) {
|
||||
$qb->andWhere($qb->expr()->notIn(
|
||||
'concept',
|
||||
'date.concept',
|
||||
$qb->createNamedParameter($excludedConceptUids, Connection::PARAM_INT_ARRAY))
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user