#223 Removed incorrect course reset logic

This commit is contained in:
Mark Nelson 2018-08-06 20:32:15 +08:00
parent 804b0ec359
commit 7de488d638

View file

@ -136,12 +136,6 @@ function customcert_reset_userdata($data) {
'error' => false);
}
// Updating dates - shift may be negative too.
if ($data->timeshift) {
shift_course_mod_dates('customcert', array('timeopen', 'timeclose'), $data->timeshift, $data->courseid);
$status[] = array('component' => $componentstr, 'item' => get_string('datechanged'), 'error' => false);
}
return $status;
}