gradebook/overview MDL-21424 - link to correct grade card

The overview report was sending the user to their own user report
rather than the user they were looking at.

forward ported from MOODLE_19_STABLE
This commit is contained in:
Dan Poltawski
2010-02-24 08:54:55 +00:00
parent 41cfe00422
commit 6261c357e0
+1 -1
View File
@@ -119,7 +119,7 @@ class grade_report_overview extends grade_report {
if (!$course->showgrades) {
continue;
}
$courselink = '<a href="'.$CFG->wwwroot.'/grade/report/user/index.php?id='.$course->id.'">'.$course->shortname.'</a>';
$courselink = '<a href="'.$CFG->wwwroot.'/grade/report/user/index.php?id='.$course->id.'&userid='.$this->user->id.'">'.$course->shortname.'</a>';
$canviewhidden = has_capability('moodle/grade:viewhidden', get_context_instance(CONTEXT_COURSE, $course->id));
// Get course grade_item