MDL-50962 user: Profile fields display properly

The department and idnumber fields were not displaying
properly on the user profile pages.
This commit is contained in:
Bruce Silver 2015-08-17 10:30:47 +08:00 committed by Adrian Greeve
parent dda862abb5
commit edd99023a6

View File

@ -192,13 +192,13 @@ function core_myprofile_navigation(core_user\output\myprofile\tree $tree, $user,
if (isset($identityfields['department']) && $user->department) {
$node = new core_user\output\myprofile\node('contact', 'department', get_string('department'), null, null,
$user->institution);
$user->department);
$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);
$user->idnumber);
$tree->add_node($node);
}