MDL-9367 restore: Roll only configuration dates

It was decided to roll only configuration dates and any date related to user content
such as 'timecreated' , 'timemodified' etc should not be rolled forward.
This commit is contained in:
Ankit Agarwal 2017-06-29 13:38:47 +05:30
parent d509f80c48
commit 0d14fcbc60
57 changed files with 1617 additions and 74 deletions

View file

@ -47,6 +47,9 @@ class restore_label_activity_structure_step extends restore_activity_structure_s
$oldid = $data->id;
$data->course = $this->get_courseid();
// Any changes to the list of dates that needs to be rolled should be same during course restore and course reset.
// See MDL-9367.
// insert the label record
$newitemid = $DB->insert_record('label', $data);
// immediately after inserting "activity" record, call this

View file

@ -156,6 +156,10 @@ function label_get_coursemodule_info($coursemodule) {
* @return array status array
*/
function label_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.
return array();
}