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
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
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment