MDL-66743 backup: reports should be able to backup module-level data

This commit is contained in:
Tim Hunt
2019-09-23 19:24:33 +01:00
parent e05d99b94f
commit c7a6488fad
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -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);
+3
View File
@@ -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);