Hi Tim,
I did for testing purpose
1. First i created course called Demo quiz in the existing category Quiz
2. Then in activity i choose quiz
3. I gave quiz as Demo2 and choose Highest Grade, already review otpions are selected by default
4, In Over all feedback i gave Cleared for 50% an below as Not cleared
5. Saved the Quiz and retured to course
6. Clicked the quiz it asked for edit the quiz to add question (I use admin login)
7. Added multichoice quiz
8. Entered 5 Questions Manually with Default Mark 1, one answer only 100% for correct answer and None for wrong answer Penalty for each question to 0%
9. Saved the questions
10. Clicked the course now i see Attempt quiz now button clicked and attempted the quiz
11. 4 Wrong answers and 1 correct answer. finished the quiz with grade 20% which is not cleared. Now i can see the summary of previous attempts.
12. I logout and logged in again and clicked the quiz i can see the previous summary.
12. Now i went to course and edited the quiz setting Grade boundary as 25% (previous 50%)
13. I saved the quiz and clicked on it now i cannot see the previous attempt summary. But i see the attempt quiz like the start i without the previous summary.
14. I checked the log and clicked the quiz review action Url changed to /Moodle/mod/quiz/review.php?attempt=24
15. But the following error is thrown
Can not find data record in database table quiz_attempts.
More information about this error
Debug info: SELECT * FROM {quiz_attempts} WHERE id = ?
[array (
0 => 24,
)]
Error code: invalidrecord
Stack trace:
?line 1357 of \lib\dml\moodle_database.php: dml_missing_record_exception thrown
?line 1333 of \lib\dml\moodle_database.php: call to moodle_database->get_record_select()
?line 490 of \mod\quiz\attemptlib.php: call to moodle_database->get_record()
?line 508 of \mod\quiz\attemptlib.php: call to quiz_attempt::create_helper()
?line 46 of \mod\quiz\review.php: call to quiz_attempt::create()
16. When i click continue button it goes to home page.
17. I did it for testing purpose only to test what will happen when we change the grade boundary of previously attempted quiz. Did i missed something or i am completely wrong.
Thanks in Advance
Vinoth