Skip to content
Snippets Groups Projects
Commit 1111a8a4 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

Adjust order for expired consultation slots, fixes #1785

Closes #1785

Merge request studip/studip!1170
parent 108f0ee8
No related branches found
No related tags found
No related merge requests found
...@@ -103,18 +103,18 @@ class Consultation_AdminController extends ConsultationController ...@@ -103,18 +103,18 @@ class Consultation_AdminController extends ConsultationController
if ($GLOBALS['user']->cfg->CONSULTATION_SHOW_GROUPED) { if ($GLOBALS['user']->cfg->CONSULTATION_SHOW_GROUPED) {
$this->blocks = $this->groupSlots(ConsultationSlot::findByRange( $this->blocks = $this->groupSlots(ConsultationSlot::findByRange(
$this->range, $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 true
)); ));
} else { } else {
$this->blocks = ConsultationBlock::findByRange( $this->blocks = ConsultationBlock::findByRange(
$this->range, $this->range,
'ORDER BY start ASC', 'ORDER BY start DESC',
true true
); );
$this->slots = ConsultationSlot::findByRange( $this->slots = ConsultationSlot::findByRange(
$this->range, $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 true
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment