Quiz Result display

Created on 14 June 2019, over 5 years ago
Updated 6 September 2024, 4 months ago

I'm a little confused about how the Quiz result answer display and QuizResultAnswerController works, specifically around some of the question feedback.

For example, I'd like to display the user's choice but only the last choice configured on the question is appearing. In TrueFalseResponse->getFeedbackValues() an array of possible choices is getting returned (true and false). But if you look at QuizResultAnswerController->buildContent() when it loops through the feedback values it appends the results to $out, but $out isn't an array of feedback so only the last iteration's values get saved.

Is there something I'm missing about how that should work, or should $out[$reviewType] be changed to $out[$idx][$reviewType]? (Although when I do make that change the output doesn't make a lot of sense, either). Or is there some logic missing to find and show the correct value out of the feedback array?

πŸ› Bug report
Status

Closed: outdated

Version

5.0

Component

Code - Feedback/results

Created by

πŸ‡ΊπŸ‡ΈUnited States karlshea Minneapolis πŸ‡ΊπŸ‡Έ

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 starting to triage the D7 quiz queue. Since there is no patch and not moved in 4 years going to close out. But if a problem in 7.0.x please reopen

Production build 0.71.5 2024