diff --git a/Classes/Domain/Repository/DateRepository.php b/Classes/Domain/Repository/DateRepository.php index 18747b7..bcbc20f 100644 --- a/Classes/Domain/Repository/DateRepository.php +++ b/Classes/Domain/Repository/DateRepository.php @@ -126,7 +126,9 @@ class DateRepository extends Repository $query->matching($query->logicalAnd($constraints)); - $query->setOrderings([$demand->getSortBy() => $demand->getSortOrder()]); + if ($demand->getSortBy() && $demand->getSortOrder()) { + $query->setOrderings([$demand->getSortBy() => $demand->getSortOrder()]); + } $callback = $demand->getQueryCalback(); if ($callback !== '') { diff --git a/Documentation/Changelog/3.2.0.rst b/Documentation/Changelog/3.2.0.rst index d351e59..5de0894 100644 --- a/Documentation/Changelog/3.2.0.rst +++ b/Documentation/Changelog/3.2.0.rst @@ -34,6 +34,8 @@ Fixes * Do not break while searching dates by search word. Properly search within location name instead of no longer existing event name column. +* Do not break on date list if no order is defined. + Tasks -----