mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-59523-master' of git://github.com/ankitagarwal/moodle
This commit is contained in:
commit
3ccd1965f3
@ -831,7 +831,9 @@ function scorm_reset_userdata($data) {
|
||||
$status[] = array('component' => $componentstr, 'item' => get_string('deleteallattempts', 'scorm'), 'error' => false);
|
||||
}
|
||||
|
||||
// No dates to shift here.
|
||||
// Any changes to the list of dates that needs to be rolled should be same during course restore and course reset.
|
||||
// See MDL-9367.
|
||||
shift_course_mod_dates('scorm', array('timeopen', 'timeclose'), $data->timeshift, $data->courseid);
|
||||
|
||||
return $status;
|
||||
}
|
||||
|
@ -230,6 +230,11 @@ function wiki_reset_userdata($data) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Any changes to the list of dates that needs to be rolled should be same during course restore and course reset.
|
||||
// See MDL-9367.
|
||||
shift_course_mod_dates('wiki', array('editbegin', 'editend'), $data->timeshift, $data->courseid);
|
||||
|
||||
return $status;
|
||||
}
|
||||
|
||||
|
@ -1890,6 +1890,11 @@ function workshop_reset_course_form_defaults(stdClass $course) {
|
||||
function workshop_reset_userdata(stdClass $data) {
|
||||
global $CFG, $DB;
|
||||
|
||||
// Any changes to the list of dates that needs to be rolled should be same during course restore and course reset.
|
||||
// See MDL-9367.
|
||||
shift_course_mod_dates('workshop', array('submissionstart', 'submissionend', 'assessmentstart', 'assessmentend'),
|
||||
$data->timeshift, $data->courseid);
|
||||
|
||||
if (empty($data->reset_workshop_submissions)
|
||||
and empty($data->reset_workshop_assessments)
|
||||
and empty($data->reset_workshop_phase) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user