mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-50516 mod_lesson: fixed issue with grade not using minquestions
It's possible to reach the end of the lesson, get your result, click back until you get to the last question, answer it correctly and then be awarded a result of 100%. This was because the grade calculation would only include the questions answered, rather than all of them in the lesson. However, you can not fix this by always grading by the amount of questions in the lesson as some lessons bypass certain questions depending on the answer to previous ones. The minquestion setting can now successfully be used to prevent this behaviour by rewording the misleading string and adding logic.
- Loading branch information
1 parent
9d5b339
commit 39b50f7
Showing
2 changed files
with
88 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters