mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-75792 availability: sort groupings list by name
This commit is contained in:
parent
7c3188b2ca
commit
7321b16ecb
@ -64,7 +64,7 @@ class frontend extends \core_availability\frontend {
|
||||
global $DB;
|
||||
if ($courseid != $this->allgroupingscourseid) {
|
||||
$this->allgroupings = $DB->get_records('groupings',
|
||||
array('courseid' => $courseid), 'id, name');
|
||||
['courseid' => $courseid], 'name');
|
||||
$this->allgroupingscourseid = $courseid;
|
||||
}
|
||||
return $this->allgroupings;
|
||||
|
Loading…
x
Reference in New Issue
Block a user