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

This commit is contained in:
Paul Holden
2022-06-14 17:19:33 +01:00
parent 22dffcd0c2
commit 9bbeeaa557
3 changed files with 17 additions and 2 deletions
+2 -1
View File
@@ -236,7 +236,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;