forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-77625 question restore: fix restore of existing questions
Continuing from the last commit, the code to restore question bank entries, versions and questions, was not taking note of whether the first stage had indentified questions that did not need to be restored. This is tricky, but the mapping can only be worked out for questions, but in the backup file, the questions are inside the question_bank_entries, and versions, so we encounter those first. Now, the code just saves the QBE and QV when it encounters them, and then does all the processing when it gets to the question, correctly taking note of whether each question should be restored or not. In cases where a particular question does not need to be restored, we still set up the corresponding mappings.
- Loading branch information
Showing
1 changed file
with
90 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters