mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-10 04:16:11 +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
|
DateDemand $demand
|
||||||
): ?ConstraintInterface {
|
): ?ConstraintInterface {
|
||||||
$categories = $demand->getCategories();
|
$categories = $demand->getCategories();
|
||||||
|
if ($categories === '') {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
$constraints = [];
|
$constraints = [];
|
||||||
|
|
||||||
if ($demand->getIncludeSubCategories()) {
|
if ($demand->getIncludeSubCategories()) {
|
||||||
|
|
Loading…
Reference in a new issue