Skip to content

Commit 0998cf8

Browse files
committed
MDL-64484 user: cross-DB compatible profile field ordering.
1 parent ea770fe commit 0998cf8

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)