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
f68658d675
commit
d5ba284e64
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