MDL-74713 admin: format custom profile fields in identify config.

This commit is contained in:
Paul Holden 2022-05-10 08:26:47 +01:00
parent ca583bddaf
commit e0b0908ba9
3 changed files with 17 additions and 2 deletions

View file

@ -240,7 +240,8 @@ if ($hassiteconfig
if ($field->param2 > 255 || $field->datatype != 'text') {
continue;
}
$fields['profile_field_' . $field->shortname] = $field->name . ' *';
$fields['profile_field_' . $field->shortname] = format_string($field->name, true,
['context' => context_system::instance()]) . ' *';
}
return $fields;