MDL-66743 backup: reports should be able to backup module-level data
This commit is contained in:
@@ -285,6 +285,9 @@ class backup_module_structure_step extends backup_structure_step {
|
||||
// attach format plugin structure to $module element, only one allowed
|
||||
$this->add_plugin_structure('format', $module, false);
|
||||
|
||||
// Attach report plugin structure to $module element, multiple allowed.
|
||||
$this->add_plugin_structure('report', $module, true);
|
||||
|
||||
// attach plagiarism plugin structure to $module element, there can be potentially
|
||||
// many plagiarism plugins storing information about this course
|
||||
$this->add_plugin_structure('plagiarism', $module, true);
|
||||
|
||||
@@ -4180,6 +4180,9 @@ class restore_module_structure_step extends restore_structure_step {
|
||||
// Apply for 'format' plugins optional paths at module level
|
||||
$this->add_plugin_structure('format', $module);
|
||||
|
||||
// Apply for 'report' plugins optional paths at module level.
|
||||
$this->add_plugin_structure('report', $module);
|
||||
|
||||
// Apply for 'plagiarism' plugins optional paths at module level
|
||||
$this->add_plugin_structure('plagiarism', $module);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user