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

@ -117,7 +117,8 @@ class award_criteria_profile extends award_criteria {
if (in_array($field->id, $existing)) {
$checked = true;
}
$this->config_options($mform, array('id' => $field->id, 'checked' => $checked, 'name' => $field->name, 'error' => false));
$this->config_options($mform, array('id' => $field->id, 'checked' => $checked,
'name' => format_string($field->name), 'error' => false));
$none = false;
}
}