MDL-49324 gradereport_singleview: Correct url params supplied to PAGE
authorAndrew Nicols <andrew@nicols.co.uk>
Fri, 29 Jan 2016 06:02:39 +0000 (14:02 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 24 Feb 2016 06:39:08 +0000 (14:39 +0800)
grade/report/singleview/index.php

index 6485af2..9d6ab82 100644 (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)) {