Retaking a failed quiz still has the previous question index

Created on 5 February 2020, almost 5 years ago
Updated 11 September 2024, 4 months ago

Problem/Motivation

Notice: Undefined offset: 11 in quiz_take_question() (line 1901 of quiz.module).

I was noticing these in my logs, and while trying to reproduce it locally I was able to by failing the 10 question quiz first then trying to retake it.

Proposed resolution

Reset the index if it doesn't allow resuming.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Closed: outdated

Version

5.0

Component

Code - Quiz core

Created by

πŸ‡¨πŸ‡¦Canada joelpittet Vancouver

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.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    With D7 EOL approaching triaging the D7 quiz queue and since this one has stalled going to close out. If issue is seen on 7.0.x please reopen

Production build 0.71.5 2024