MDL-49324 gradereport_singleview: Correct url params supplied to PAGE

This commit is contained in:
Andrew Nicols
2016-02-24 14:39:08 +08:00
parent 0a802c9c4e
commit a2f6399806
+10 -1
View File
@@ -46,7 +46,16 @@ if (empty($itemid)) {
}
$courseparams = array('id' => $courseid);
$PAGE->set_url(new moodle_url('/grade/report/singleview/index.php', $courseparams));
$pageparams = array(
'id' => $courseid,
'group' => $groupid,
'userid' => $userid,
'itemid' => $itemid,
'item' => $itemtype,
'page' => $page,
'perpage' => $perpage,
);
$PAGE->set_url(new moodle_url('/grade/report/singleview/index.php', $pageparams));
$PAGE->set_pagelayout('incourse');
if (!$course = $DB->get_record('course', $courseparams)) {