Layout error quiz not starting

Created on 6 June 2017, over 7 years ago
Updated 6 September 2024, 2 months ago

When having a full setup of quiz and submodules and adding quiz result display settings, somehow it breaks.
When quiz results cannot get a proper layout it breaks and the quiz cannot be taken because of the next error:

Notice: Undefined offset: 27 in QuizResult->getLayout() in QuizResult.class.inc
Warning: Invalid argument supplied for foreach() in quiz_take_quiz() (line 1886 in quiz.module

I think it would be nicer to set a check if there's a layout, so it cannot break the process.

πŸ› Bug report
Status

Postponed: needs info

Version

5.0

Component

Code - Quiz core

Created by

πŸ‡³πŸ‡±Netherlands mr_infinity Eindhoven

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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