MDL-30364 fix user report regressions

This commit is contained in:
Petr Skoda 2011-12-10 20:18:44 +01:00
parent acb3bf8ac1
commit d59ef547c9
2 changed files with 3 additions and 1 deletions

View file

@ -2014,7 +2014,7 @@ class global_navigation extends navigation_node {
}
}
if ($gradeaccess) {
$reporttab->add(get_string('grade'), new moodle_url('/course/user.php', array('mode'=>'grade', 'id'=>$course->id)));
$reporttab->add(get_string('grade'), new moodle_url('/course/user.php', array('mode'=>'grade', 'id'=>$course->id, 'user'=>$usercontext->instanceid)));
}
}
// Check the number of nodes in the report node... if there are none remove the node