Merge branch 'MDL-43460-master' of git://github.com/FMCorz/moodle
This commit is contained in:
@@ -124,6 +124,7 @@ class restore_course_task extends restore_task {
|
||||
$contents = array();
|
||||
|
||||
$contents[] = new restore_decode_content('course', 'summary');
|
||||
$contents[] = new restore_decode_content('event', 'description');
|
||||
|
||||
return $contents;
|
||||
}
|
||||
|
||||
@@ -2223,6 +2223,7 @@ class restore_calendarevents_structure_step extends restore_structure_step {
|
||||
$result = $DB->record_exists_sql($sql, $arg);
|
||||
if (empty($result)) {
|
||||
$newitemid = $DB->insert_record('event', $params);
|
||||
$this->set_mapping('event', $oldid, $newitemid);
|
||||
$this->set_mapping('event_description', $oldid, $newitemid, $restorefiles);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user