-
Bug
-
Resolution: Fixed
-
Minor
-
2.9.1
-
MOODLE_29_STABLE
-
MOODLE_28_STABLE, MOODLE_29_STABLE
-
1. create a quiz
2. add a matching question with 3 questions and 4 answers
3. attempt the quiz as a student
4. delete the third question text
5. go to Results -> Statistics
The calculation of the statistics will stop with the following error:
Notice: Undefined offset: 21115 in question/classes/statistics/responses/analysis_for_question.php on line 131
Fatal error: Call to a member function count_response() on a non-object in question/classes/statistics/responses/analysis_for_question.php on line 189
get_possible_responses from the matching question returns two subquestions after removing the third question. The problem is classify_response still returns the classification for the removed subquestion.
- Discovered while testing
-
MDL-51409 Force statistics to be recalculated after removing data required by its cached results
-
- Closed
-
- has been marked as being related by
-
MDL-51695 Quiz statistics fail after changing multichoice question
-
- Closed
-
- is a regression caused by
-
MDL-49368 PHP notices if a matching or mutichoice question is edited after it has been attempted
-
- Closed
-