Skip to content

Commit

Permalink
Merge branch 'MDL-73156-master' of https://github.com/michael-milette…
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Jun 23, 2022
2 parents 271c69f + 416527f commit 626d0fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions user/filters/profilefield.php
Expand Up @@ -77,6 +77,9 @@ public function get_profile_fields() {
require_once($CFG->dirroot . '/user/profile/lib.php');

$fieldrecords = profile_get_custom_fields();
foreach ($fieldrecords as $key => $fieldrecord) {
$fieldrecords[$key]->name = format_string($fieldrecords[$key]->name, false, ['context' => context_system::instance()]);
}
$fields = array_combine(array_keys($fieldrecords), array_column($fieldrecords, 'name'));
core_collator::asort($fields);
$res = array(0 => get_string('anyfield', 'filters'));
Expand Down

0 comments on commit 626d0fe

Please sign in to comment.