mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 04:33:13 +01:00
MDL-64484 user: cross-DB compatible profile field ordering.
This commit is contained in:
parent
03098df6ef
commit
52cf92277d
@ -74,7 +74,8 @@ class user_filter_profilefield extends user_filter_type {
|
||||
*/
|
||||
public function get_profile_fields() {
|
||||
global $DB;
|
||||
if (!$fields = $DB->get_records_menu('user_info_field', null, 'name', 'id, name')) {
|
||||
$order = $DB->sql_order_by_text('name');
|
||||
if (!$fields = $DB->get_records_menu('user_info_field', null, $order, 'id, name')) {
|
||||
return null;
|
||||
}
|
||||
$res = array(0 => get_string('anyfield', 'filters'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user