Permalink
Browse files

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.
  • Loading branch information...
1 parent 7348068 commit dcb98cd8e89ca921b23db8bbbb6e9a2f12e5f821 @danpoltawski danpoltawski committed Feb 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 grade/report/overview/lib.php
@@ -120,7 +120,7 @@ function fill_table() {
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

0 comments on commit dcb98cd

Please sign in to comment.