Skip to content

Commit

Permalink
MDL-30173 Assignment : Convert to use moodle_url and add missing filt…
Browse files Browse the repository at this point in the history
…er param
  • Loading branch information
Andrew Robert Nicols authored and Aparup Banerjee committed Nov 21, 2011
1 parent 7d584b1 commit 12216d3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mod/assignment/lib.php
Expand Up @@ -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':
Expand Down

0 comments on commit 12216d3

Please sign in to comment.