-
Bug
-
Resolution: Fixed
-
Major
-
2.9, 2.9 regressions
-
MOODLE_29_STABLE
-
MOODLE_29_STABLE
-
wip-
MDL-50962-master -
In Moodle 2.9 there are a bug in myprofilelib.php; the field institution is repeated in depatment and idnumber.
myprofilelib.php |
if (isset($identityfields['institution']) && $user->institution) {
|
$node = new core_user\output\myprofile\node('contact', 'institution', get_string('institution'), null, null,
|
$user->institution);
|
$tree->add_node($node);
|
}
|
if (isset($identityfields['department']) && $user->department) {
|
$node = new core_user\output\myprofile\node('contact', 'department', get_string('department'), null, null,
|
$user->institution);
|
$tree->add_node($node);
|
}
|
if (isset($identityfields['idnumber']) && $user->idnumber) {
|
$node = new core_user\output\myprofile\node('contact', 'idnumber', get_string('idnumber'), null, null,
|
$user->institution);
|
$tree->add_node($node);
|
}
|