mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-49324 gradereport_singleview: Correct url params supplied to PAGE
This commit is contained in:
parent
0a802c9c4e
commit
a2f6399806
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user