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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user