From 1111a8a4d84946c09b96e79b310873bf0973315e Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Thu, 17 Nov 2022 07:54:29 +0000 Subject: [PATCH] Adjust order for expired consultation slots, fixes #1785 Closes #1785 Merge request studip/studip!1170 --- app/controllers/consultation/admin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/consultation/admin.php b/app/controllers/consultation/admin.php index 1eecc29cce6..737a667b70b 100644 --- a/app/controllers/consultation/admin.php +++ b/app/controllers/consultation/admin.php @@ -103,18 +103,18 @@ class Consultation_AdminController extends ConsultationController if ($GLOBALS['user']->cfg->CONSULTATION_SHOW_GROUPED) { $this->blocks = $this->groupSlots(ConsultationSlot::findByRange( $this->range, - "ORDER BY start ASC LIMIT " . ($this->page * $this->limit) . ", {$this->limit}", + "ORDER BY start DESC LIMIT " . ($this->page * $this->limit) . ", {$this->limit}", true )); } else { $this->blocks = ConsultationBlock::findByRange( $this->range, - 'ORDER BY start ASC', + 'ORDER BY start DESC', true ); $this->slots = ConsultationSlot::findByRange( $this->range, - "ORDER BY start ASC LIMIT " . ($this->page * $this->limit) . ", {$this->limit}", + "ORDER BY start DESC LIMIT " . ($this->page * $this->limit) . ", {$this->limit}", true ); } -- GitLab