Skip to content

Commit

Permalink
Fix #145 deprecated get_all_user_name_fields().
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwillcock authored and danmarsden committed Feb 7, 2024
1 parent fc842ea commit 2b300af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bulkchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
exit;
}

$usernamefields = get_all_user_name_fields(true, 'u');
$usernamefields = \core_user\fields::for_name()->get_sql($alias = 'u', false, '', '', false)->selects;
list($usql, $params) = $DB->get_in_or_equal($userids, SQL_PARAMS_NAMED, 'u');

if ($formaction == 'resetbyfirstaccess') {
Expand Down

0 comments on commit 2b300af

Please sign in to comment.