-
Bug
-
Resolution: Fixed
-
Major
-
3.5.4, 3.6.2
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
MDL-64941-master -
When you restore a quiz with a multianswer/cloze question containing multichoice subquestions and modify this question, the multichoice questions of existing attempts will lose their values and display "This choice was deleted after the attempt was started".
The problem is that the restore multianswer class restores the subquestions in reverse order. When you save the multianswer question later, the existing subquestions will be overwritten in the order of their ascending ids (instead of the order as given in the sequence field). It overwrites the wrong subquestions and the existing attempt steps data now refer to the wrong answer ids.