Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.9.12, 2.1
-
Fix Version/s: DEV backlog
-
Component/s: Groups
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_19_STABLE, MOODLE_21_STABLE
Description
When using the Groupings functionality in either 1.9 (restrict access to a resource or activity to a specific grouping) or 2.1 (apply the selected group mode to the groups in the selected grouping), the drop-down menu that lists the Groupings lists them in the order in which they were created. It would be fantastic if the groupings were displayed in alphabetical order.
In 1.9 this is an easy fix: in course/modedit_form.php, at line 251, add the following line (surrounding lines shown for reference):
if ($groupings = get_records('groupings', 'courseid', $COURSE->id)) { + sort($groupings); // ADD THIS LINE foreach ($groupings as $grouping) {
This fix doesn't work in 2.1; I'll have to do some more poking through the code to see what's changed.
That sounds like a good idea.
Please continue looking around and let us know what you find.