-
Bug
-
Resolution: Fixed
-
Critical
-
5.0
During a restore, restore_move_module_questions_categories is supposed to find new question references that point to questions in an existing question bank, and point them back to the original questions. However the current query will find all questions using those question bank entires, not just those in the restored course. In certain circumstances, this could result in the course a backup was taken from having its quiz questions changed during a restore.
This isn't easy to give straightforward reproduction steps for, as I believe it will only happen if you have a duplicate question with a qtype that hasn't been updated to take MDL-83541 into account. However, it breaks the unit test that is meant to check qtypes for compatibility, so it is worth fixing, and we can use the unit test to show it is resolved.
- blocks
-
MDL-85350 test_restore_course_with_same_stamp_questions fails for questions storing answers in a custom table instead of question_answers
-
- Waiting for peer review
-
- Discovered while testing
-
MDL-85350 test_restore_course_with_same_stamp_questions fails for questions storing answers in a custom table instead of question_answers
-
- Waiting for peer review
-
- is a regression caused by
-
MDL-84037 Restoring a quiz using a mod_qbank question to another course creates an erroneous category
-
- Closed
-