When the global option "Allow quiz creators to set a pass/fail option when creating a quiz." is switched off only one summary textarea is displayed on the quiz edit form under pass/fail options. This textarea has the name 'summary_default' and is used for a single summary to display on the results screen at the end of the quiz regardless as to what score the user obtained.
However, it is also used to hold the failure summary in the case when "Allow quiz creators to set a pass/fail option when creating a quiz." option is set to on.
The logic that deals with displaying the summary text on the result screen does not check this global setting and so the summary does not display in the situation when the user gets 100% of answers correct.
The proper behaviour should be that the default summary displays on the results screen in all cases if "Allow quiz creators to set a pass/fail option when creating a quiz." global option is set to off.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | quiz-no_summary_on_results_screen-1797780.patch | 741 bytes | johnennew |
Comments
Comment #1
johnennew commentedPlease find a patch for review attached which checks the status of the global option on 100% score and displays the correct summary if it is set.
Comment #2
falcon commentedThanks!
Comment #4
gbenga23 commentedI want to set the number of question for different user, like bronze 50 questions, silver 100 questions and Gold 200 question out of 400 questions
thanks