From d128af94d34d9fdab0915e6b7be15c0b00efe09a Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Wed, 3 Aug 2022 11:59:07 +0200 Subject: [PATCH] Do not add categories filter of none were defined --- Classes/Domain/Repository/DateRepository.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Classes/Domain/Repository/DateRepository.php b/Classes/Domain/Repository/DateRepository.php index 586571e..492895e 100644 --- a/Classes/Domain/Repository/DateRepository.php +++ b/Classes/Domain/Repository/DateRepository.php @@ -170,6 +170,9 @@ class DateRepository extends Repository DateDemand $demand ): ?ConstraintInterface { $categories = $demand->getCategories(); + if ($categories === '') { + return null; + } $constraints = []; if ($demand->getIncludeSubCategories()) {