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
d007e56589
commit
ca1b065b65
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