-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.6, 4.2.1, 4.3
As reported by François Lizotte here: https://moodle.org/mod/forum/discuss.php?d=450118
- Create a quiz with two true-false questions.
- Log in as a student.
- Attempt the quiz.
- Log in as teacher.
- View the quiz statistics (to compute and cache the stats).
- Delete the student's attempt.
- Go to the Quiz -> Questions page, and remove one of the questions.
- View the quiz statistics again.
Expected results: the report says there is no data to display now.
Acutal result: fatal error, because it tries to display the cached stats, which refers to slot 2, and the quiz now only contains one slot, and the code is not robust to this.
- is a regression caused by
-
MDL-78580 Add locking to quiz statistics calculation to prevent database deadlocks
- Closed