mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
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:
parent
d509f80c48
commit
0d14fcbc60
57 changed files with 1617 additions and 74 deletions
|
@ -47,6 +47,9 @@ class restore_page_activity_structure_step extends restore_activity_structure_st
|
|||
$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 page record
|
||||
$newitemid = $DB->insert_record('page', $data);
|
||||
// immediately after inserting "activity" record, call this
|
||||
|
|
|
@ -58,6 +58,10 @@ function page_get_extra_capabilities() {
|
|||
* @return array status array
|
||||
*/
|
||||
function page_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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue