-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.6, 4.1.1
-
MOODLE_400_STABLE, MOODLE_401_STABLE
-
MOODLE_400_STABLE, MOODLE_401_STABLE
-
MDL-77464_401 -
Steps to reproduce:
- As teacher
- Create a quiz with these settings:
- How questions behave: immediate feedback.
- Allow redo within an attempt: Yes ... (this is hidden behind 'Show more...'
- Add one true-false question to the quiz, correct answer true.
- As a student
- Start a quiz attempt
- Input the answer True and click 'Check'
- Click 'Try another question like this one' but don't answer the question.
- As teacher
- Go to the quiz reports
- Click 'Regrade all' (it works)
- Click 'Continue'.
- Click 'Regrade all'.
Expected result: It works again
Actual result: Error, becuase the first attempt has corrupted the data a bit.
Warning: Undefined array key 2 in /var/www/html/moodle/mod/quiz/report/overview/report.php on line 435
Warning: Attempt to read property "qtype" on null in /var/www/html/moodle/mod/quiz/report/overview/report.php on line 435
Warning: Undefined array key 2 in /var/www/html/moodle/mod/quiz/report/overview/report.php on line 437
Warning: Attempt to read property "questionid" on null in /var/www/html/moodle/mod/quiz/report/overview/report.php on line 437
Can't find data record in database.
- Discovered while testing
-
MDL-77210 Quiz 'Try another question like this one' breaks regrading
- Closed