Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-30173 Assignment : Convert to use moodle_url and add missing filt…

…er param
  • Loading branch information...
commit 12216d31ff1eefe3586744279486f048edb82702 1 parent 7d584b1
@andrewnicols andrewnicols authored nebgor committed
Showing with 6 additions and 2 deletions.
  1. +6 −2 mod/assignment/lib.php
View
8 mod/assignment/lib.php
@@ -757,8 +757,12 @@ function submissions($mode) {
$nextid = required_param('nextid', PARAM_INT);
$id = required_param('id', PARAM_INT);
$offset = (int)$offset+1;
- //$this->display_submission($offset+1 , $nextid);
- redirect('submissions.php?id='.$id.'&userid='. $nextid . '&mode=single&offset='.$offset);
+ $filter = optional_param('filter', self::FILTER_ALL, PARAM_INT);
+ $redirect = new moodle_url('submissions.php',
+ array('id' => $id, 'offset' => $offset, 'userid' => $nextid,
+ 'mode' => 'single', 'filter' => $filter));
+
+ redirect($redirect);
break;
case 'singlenosave':
Please sign in to comment.
Something went wrong with that request. Please try again.