diff --git a/backup/moodle2/backup_stepslib.php b/backup/moodle2/backup_stepslib.php index 49daa6fb41f..ac8c91711e3 100644 --- a/backup/moodle2/backup_stepslib.php +++ b/backup/moodle2/backup_stepslib.php @@ -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); diff --git a/backup/moodle2/restore_stepslib.php b/backup/moodle2/restore_stepslib.php index 51fbbb1a325..10199e0775b 100644 --- a/backup/moodle2/restore_stepslib.php +++ b/backup/moodle2/restore_stepslib.php @@ -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);