Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
89a4471
)
MDL-30174 Assignment : Only increment submission offset if the current assignment...
author
Andrew Robert Nicols
<andrew.nicols@luns.net.uk>
Mon, 7 Nov 2011 17:35:12 +0000
(17:35 +0000)
committer
Aparup Banerjee
<aparup@moodle.com>
Mon, 21 Nov 2011 18:20:16 +0000
(
02:20
+0800)
mod/assignment/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/assignment/lib.php
b/mod/assignment/lib.php
index
86906a9
..
012b3b3
100644
(file)
--- a/
mod/assignment/lib.php
+++ b/
mod/assignment/lib.php
@@
-769,8
+769,11
@@
class assignment_base {
$offset = required_param('offset', PARAM_INT);
$nextid = required_param('nextid', PARAM_INT);
$id = required_param('id', PARAM_INT);
$offset = required_param('offset', PARAM_INT);
$nextid = required_param('nextid', PARAM_INT);
$id = required_param('id', PARAM_INT);
- $offset = (int)$offset+1;
$filter = optional_param('filter', self::FILTER_ALL, PARAM_INT);
$filter = optional_param('filter', self::FILTER_ALL, PARAM_INT);
+
+ if ($mode == 'next' || $filter !== self::FILTER_REQUIRE_GRADING) {
+ $offset = (int)$offset+1;
+ }
$redirect = new moodle_url('submissions.php',
array('id' => $id, 'offset' => $offset, 'userid' => $nextid,
'mode' => 'single', 'filter' => $filter));
$redirect = new moodle_url('submissions.php',
array('id' => $id, 'offset' => $offset, 'userid' => $nextid,
'mode' => 'single', 'filter' => $filter));