Fix of showing names of custom user fields (#326)
Show normal human-readable name of custom user profile fields instead of internal shortname
This commit is contained in:
parent
2f8bb1eb29
commit
1c9f4786fb
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class element extends \mod_customcert\element {
|
|||
$arrcustomfields = \availability_profile\condition::get_custom_profile_fields();
|
||||
$customfields = array();
|
||||
foreach ($arrcustomfields as $key => $customfield) {
|
||||
$customfields[$customfield->id] = $key;
|
||||
$customfields[$customfield->id] = $customfield->name;
|
||||
}
|
||||
// Combine the two.
|
||||
$fields = $userfields + $customfields;
|
||||
|
|
Loading…
Reference in a new issue