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:
Sergey 2020-02-22 20:44:23 +01:00 committed by Mark Nelson
parent f68658d675
commit d5ba284e64

View file

@ -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;