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.

Comments

johnennew’s picture

Status: Active » Needs review
StatusFileSize
new741 bytes

Please 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.

falcon’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

gbenga23’s picture

I 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

  • Commit 5381604 on 7.x-4.x, 7.x-5.x by falcon:
    Issue #1797780 by ceng: Fixed a problem where quiz summaries didn't...

  • Commit 5381604 on 7.x-4.x, 7.x-5.x, quiz-pages by falcon:
    Issue #1797780 by ceng: Fixed a problem where quiz summaries didn't...

  • Commit 5381604 on 7.x-4.x, 7.x-5.x, quiz-pages, 2269219 by falcon:
    Issue #1797780 by ceng: Fixed a problem where quiz summaries didn't...

  • Commit 5381604 on 7.x-4.x, 7.x-5.x, 2269219 by falcon:
    Issue #1797780 by ceng: Fixed a problem where quiz summaries didn't...