-
Bug
-
Resolution: Fixed
-
Minor
-
2.2.9, 2.3.6, 2.4, 2.5
-
MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_23_STABLE, MOODLE_24_STABLE
-
It seems that its not working anymore on 2.4.
At user/lib.php , line 240 we have
$showuseridentityfields = get_extra_user_fields($context);
|
That is an array of fields, but at line 240 the condition tests if the field is a key
if ($isadmin or $currentuser or isset($showuseridentityfields['idnumber']))
|
when it should test if the value exist in array
if ($isadmin or $currentuser or in_array('idnumber', $showuseridentityfields))
|
Same thing happens for institution, department, phone1 and phone2