Undefined property: stdClass::$pass_rate in quiz_validate() (line 1570 of /xxx/sites/all/modules/quiz/quiz.module)

Created on 30 March 2020, almost 5 years ago
Updated 31 August 2024, 5 months ago

Steps to reproduce:

1. In the Quiz Global Configurations, unselect "Allow quiz creators to set a pass/fail option when creating a quiz."
2. In Quiz Edit form, fill in "Result feedback" options

This throws up the notice "Undefined property: stdClass::$pass_rate in quiz_validate() (line 1570 of /xxx/sites/all/modules/quiz/quiz.module)" when saving the Quiz. If I select "Allow quiz creators to set a pass/fail option when creating a quiz.", then the error does not appear when saving the Quiz.

πŸ› Bug report
Status

Closed: outdated

Version

5.7

Component

Code - Quiz core

Created by

πŸ‡ΊπŸ‡ΈUnited States zdean

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024