Do not add categories filter of none were defined

This commit is contained in:
Daniel Siepmann 2022-08-03 11:59:07 +02:00
parent 239bfe51fc
commit d128af94d3

View file

@ -170,6 +170,9 @@ class DateRepository extends Repository
DateDemand $demand
): ?ConstraintInterface {
$categories = $demand->getCategories();
if ($categories === '') {
return null;
}
$constraints = [];
if ($demand->getIncludeSubCategories()) {