Merge branch 'wip-MDL-50962-master' of git://github.com/abgreeve/moodle
authorDavid Monllao <davidm@moodle.com>
Mon, 17 Aug 2015 06:56:14 +0000 (14:56 +0800)
committerDavid Monllao <davidm@moodle.com>
Mon, 17 Aug 2015 06:56:14 +0000 (14:56 +0800)
lib/myprofilelib.php

index a00b5ec..e013d6d 100644 (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);
     }