Skip to content

Commit f55a4c0

Browse files
committed
Merge branch 'MDL-64484-37' of https://github.com/paulholden/moodle into MOODLE_37_STABLE
2 parents 3766be8 + 0998cf8 commit f55a4c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

user/filters/profilefield.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ public function get_operators() {
7474
*/
7575
public function get_profile_fields() {
7676
global $DB;
77-
if (!$fields = $DB->get_records_menu('user_info_field', null, 'name', 'id, name')) {
77+
$order = $DB->sql_order_by_text('name');
78+
if (!$fields = $DB->get_records_menu('user_info_field', null, $order, 'id, name')) {
7879
return null;
7980
}
8081
$res = array(0 => get_string('anyfield', 'filters'));

0 commit comments

Comments
 (0)