Skip to content

Commit

Permalink
mod_studentquiz: Fix duplicated question categories in course backup
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyjbutler committed Dec 2, 2024
1 parent fb94f2b commit 0f12565
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backup/moodle2/backup_studentquiz_activity_task.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ protected function define_my_steps() {
// Backup studentquiz tables.
$this->add_step(new backup_studentquiz_activity_structure_step('studentquiz_structure', 'studentquiz.xml'));

// Clean backup_temp_ids table of questions.
$this->add_step(new backup_delete_temp_questions('clean_temp_questions'));

// Backup question categories.
$this->add_step(new backup_calculate_question_categories('activity_question_categories'));
}
Expand Down

0 comments on commit 0f12565

Please sign in to comment.