-
Bug
-
Resolution: Fixed
-
Minor
-
2.2.3, 2.8.2
-
MOODLE_22_STABLE, MOODLE_28_STABLE
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MDL-34006_m29v6 -
Whenever one of our students starts a lesson and, for some reason, quits halfway he gets the option to continue where he left off when he restarts the lesson. But when he does that he always continues at the second question.
After some digging I found that the problem seems to be in the file 'mod/lesson/view.php'
In line 195 the program gets all the previous attempts at this lessons questions and loops through it in line 197 to 211. Except that he breaks in line 210 after evaluating the first attemptquestion of the list.
The problem, as far as I see, is that the list of attempts starts by the oldest and therefor first question of the lesson. Taking that attempt the next question my student student should be seeing is indeed the second question (being the question after this attempt).
I made a quick fix on this problem by simply removing the break on line 210 and making moodle loop though all the question attempts until it reaches the last but this is not safe for me in case of future updates.
Now I may have done at some part in the setup of my moodle site or my lesson, but in that case I can't find it. Please Help.
- blocks
-
MDL-49065 Display 'You have lessons that need attention' when more relevant to students.
-
- Closed
-
- has been marked as being related by
-
MDL-48996 Create behat definition for creating lesson categories and questions.
-
- Closed
-
- is duplicated by
-
MDL-27466 Resume lesson always goes to page 2
-
- Closed
-
- Testing discovered
-
MDL-48881 Lesson does not alway show student attempts
-
- Closed
-