Check whether order is configured before applying

Relates: #10349
This commit is contained in:
Daniel Siepmann 2023-02-16 07:54:53 +01:00
parent 0c9f9542fb
commit 3cd2aa9095
2 changed files with 5 additions and 1 deletions

View file

@ -126,7 +126,9 @@ class DateRepository extends Repository
$query->matching($query->logicalAnd($constraints)); $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(); $callback = $demand->getQueryCalback();
if ($callback !== '') { if ($callback !== '') {

View file

@ -34,6 +34,8 @@ Fixes
* Do not break while searching dates by search word. * Do not break while searching dates by search word.
Properly search within location name instead of no longer existing event name column. 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 Tasks
----- -----