Missing answers in quiz results view

Created on 28 February 2023, over 1 year ago

After upgrading the quiz module to version 5.8 we noticed that answers and questions were missing from the quiz results view. I installed and looked at previous commits and it seems our problem starts with the commit of this issue β†’ .

Turns out that arg(2) in this code snippet in our situation is not 'take' but 'quiz'.

          if ($rule_passed && $time_key == 'question' && arg(2) == 'take') {
            // Special handling for after question.
            if (!$quiz_result->time_end || $quiz_result->time_end >= REQUEST_TIME - 5) {
              $all_shows += array_filter($shows);
            }

After changing arg(2) to 'quiz' the answers and questions are visible on our quiz results view.

πŸ› Bug report
Status

Active

Version

5.8

Component

Code - Quiz core

Created by

πŸ‡³πŸ‡±Netherlands EstherTempel

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

Comments & Activities

Production build 0.69.0 2024