Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
h2. Issue summary.
When calculating quiz score, QuizPagesResponse calls parent method getMaxScore(). In fact, it should always return 0 (consistent with QuizPagesQuestion::getMaximumScore())
h2. Suggested solution
Add QuizPagesResponse::getMaxScore() that will always return 0
Comment | File | Size | Author |
---|---|---|---|
#2 | 2711647.patch | 616 bytes | valthebald |
|
Comments
Comment #2
valthebaldComment #3
djdevinHi,
Does it not return 0 now?
Because the QuizPagesQuestion::getMaximumScore() is 0 it should really not be able to return anything greater than 0 for the response score.
Comment #4
valthebaldI looks like this case is returning (quiz_question.core.inc, lines 625-628)
Comment #5
djdevinI wasn't able to reproduce this being a problem. Setting up a quiz with quiz pages and questions only took into account the questions, not the pages.
If you can provide steps to reproduce setting up a quiz that exhibits some bad behavior I'll have another look.