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();
|
$arrcustomfields = \availability_profile\condition::get_custom_profile_fields();
|
||||||
$customfields = array();
|
$customfields = array();
|
||||||
foreach ($arrcustomfields as $key => $customfield) {
|
foreach ($arrcustomfields as $key => $customfield) {
|
||||||
$customfields[$customfield->id] = $key;
|
$customfields[$customfield->id] = $customfield->name;
|
||||||
}
|
}
|
||||||
// Combine the two.
|
// Combine the two.
|
||||||
$fields = $userfields + $customfields;
|
$fields = $userfields + $customfields;
|
||||||
|
|
Loading…
Reference in a new issue