Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0, 2.1
-
Component/s: Lesson
-
Labels:
-
Testing Instructions:
-
Workaround:
-
Affected Branches:MOODLE_20_STABLE, MOODLE_21_STABLE
-
Fixed Branches:MOODLE_20_STABLE, MOODLE_21_STABLE
-
Pull from Repository:
-
Pull Master Branch:
-
Pull Master Diff URL:
Description
The way that those two Lesson settings: Provide option to try a question again and Maximum number of attempts interact leads to inconsistencies in the Lesson flow control.
see this forum discussion:http://moodle.org/mod/forum/discuss.php?d=183756
I have found a simple fix, which does work in the case at hand, but may have unexpected side-effects, so use at own risk.
For Moodle 2.0 and 2.1. In file <moodle>/mod/lesson/continue.php, change line 200 from:
if (!$result->correctanswer && !$result->noanswer && !$result->isessayquestion && !$reviewmode) {
|
to
if (!$result->correctanswer && !$result->noanswer && !$result->isessayquestion && !$reviewmode && $lesson->review) {
|