Fix incorrect evaluation of transport filter setting
This commit is contained in:
@@ -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