mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-10 03:56:09 +01:00
Do not add categories filter of none were defined
This commit is contained in:
parent
239bfe51fc
commit
d128af94d3
1 changed files with 3 additions and 0 deletions
|
@ -170,6 +170,9 @@ class DateRepository extends Repository
|
|||
DateDemand $demand
|
||||
): ?ConstraintInterface {
|
||||
$categories = $demand->getCategories();
|
||||
if ($categories === '') {
|
||||
return null;
|
||||
}
|
||||
$constraints = [];
|
||||
|
||||
if ($demand->getIncludeSubCategories()) {
|
||||
|
|
Loading…
Reference in a new issue