mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
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:
parent
dda862abb5
commit
edd99023a6
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user