Permalink
Browse files

MDL-31405 Assignment reset issue solved

  • Loading branch information...
1 parent 5c74090 commit 090e0ad543eb981b4bf5f4c59377974f4b087e65 @jayeshanandani jayeshanandani committed with Rajesh Taneja Jun 10, 2013
Showing with 12 additions and 0 deletions.
  1. +12 −0 mod/assign/lib.php
View
@@ -82,6 +82,18 @@ function assign_reset_userdata($data) {
$status = array_merge($status, $assignment->reset_userdata($data));
}
}
+ // Updating dates - shift may be negative too.
+ $componentstr = get_string('modulenameplural', 'assign');
+
+ if ($data->timeshift) {
+ shift_course_mod_dates('assign',
+ array('duedate', 'allowsubmissionsfromdate', 'cutoffdate'),
+ $data->timeshift,
+ $data->courseid);
+ $status[] = array('component' => $componentstr,
+ 'item' => get_string('datechanged'),
+ 'error' => false);
+ }
return $status;
}

0 comments on commit 090e0ad

Please sign in to comment.