- πΊπΈUnited States smustgrave
Issue doesn't seem relevant to current D7 branch of quiz and with D7 in general EOL soon, going to say this missed the boat.
Thanks
The end of quiz report will always show the correct answer as "True" when the question is left blank. This is because this line does not function correctly if the user answer is null:
$correct_answer = $answer['is_correct'] ? $answer['answer'] : !$answer['answer'];
Since the actual correct answer is already available, I am replacing it with this:
$correct_answer = $this->question->correct_answer;
This is a 4.x issue only as this area of code has changed in 5.x.
Closed: outdated
4.0
Code - True/false
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Issue doesn't seem relevant to current D7 branch of quiz and with D7 in general EOL soon, going to say this missed the boat.
Thanks