This commit is contained in:
Huong Nguyen 2024-05-23 08:47:27 +07:00
commit 571d3d8821
No known key found for this signature in database
GPG Key ID: 40D88AB693A3E72A
2 changed files with 4 additions and 2 deletions

View File

@ -55,7 +55,7 @@ class backup_assign_activity_structure_step extends backup_activity_structure_st
/**
* Define the structure for the assign activity
* @return void
* @return backup_nested_element
*/
protected function define_structure() {
@ -205,6 +205,8 @@ class backup_assign_activity_structure_step extends backup_activity_structure_st
// These file areas don't have an itemid.
$assign->annotate_files('mod_assign', 'intro', null);
$assign->annotate_files('mod_assign', 'introattachment', null);
$assign->annotate_files('mod_assign', 'activityattachment', null);
$this->annotate_plugin_config_files($assign, 'assignsubmission');
$this->annotate_plugin_config_files($assign, 'assignfeedback');

View File

@ -421,11 +421,11 @@ class restore_assign_activity_structure_step extends restore_activity_structure_
/**
* Once the database tables have been fully restored, restore the files
* @return void
*/
protected function after_execute() {
$this->add_related_files('mod_assign', 'intro', null);
$this->add_related_files('mod_assign', 'introattachment', null);
$this->add_related_files('mod_assign', 'activityattachment', null);
$this->add_plugin_config_files('assignsubmission');
$this->add_plugin_config_files('assignfeedback');