Skip to content

Commit

Permalink
MDL-50962 user: Profile fields display properly
Browse files Browse the repository at this point in the history
The department and idnumber fields were not displaying
properly on the user profile pages.
  • Loading branch information
Beanbiscuit authored and abgreeve committed Aug 17, 2015
1 parent f5e48d2 commit 654c69c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/myprofilelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 654c69c

Please sign in to comment.