- Issue created by @EstherTempel
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.
Active
5.8
Code - Quiz core