Closed (fixed)
Project:
Quiz
Version:
6.x-3.0-beta1
Component:
Code - Quiz module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2008 at 07:52 UTC
Updated:
17 Jan 2010 at 17:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
mbutcher commentedAs far as I can tell, this is not by design (unless my predecessor knew something I don't). I am changing it to a bug.
Comment #2
nirvanajyothi commentedok.
Have attached the same image twice.am attaching the Quiz results image again ( ie.,thats shown after the user takes the quiz with both user answer and correct answer .)
Comment #3
mbutcher commentedThis needs re-testing in Quiz 3
Comment #4
d-b commentedBug is present in 3.0-beta-1
The results that load for a user directly after finishing the test are correct.
The table header for each question looks like:
And the correct/incorrect icon is displayed in the 'quiz_summary_qcell' class of cells.
Using the /user/quiz/X/userresults URL sent in the confirmation email produces a page that contains question tables that lack the 'Correct Answer' column.
These tables also lack the 'quiz_summary_qcell' cells altogether, making it impossible to decide which questions one missed.
Hope this helps.
Comment #5
sivaji_ganesh_jojodae commentedNeed more info
1. Can you please attach a snapshot ?
a. after finishing the test
b. for /user/quiz/X/userresults
2. Which question type has this type of behavior matching, true/false or multichoice ?
Comment #6
d-b commented1. Of course.
2. Multi-choice (with single correct answer)
Comment #7
sivaji_ganesh_jojodae commentedTested against quiz 3.x-beta1, drupal 6.12. It works fine for me. See the snapshot.
Comment #8
sivaji_ganesh_jojodae commentedThe warning messages and other known bugs in matching modules has been fixed 3.x dev branch.
Comment #9
d-b commentedI played with this some more and discovered that the results display correctly via the admin/ links, and also immediately after the test.
file: quiz.pages.inc
function: theme_quiz_user_summary
line: 465
This sets the $showpoints variable to false for a user visiting the result from the /user/quiz/X/userresults URL
$showpoints then suppresses both the 'Correct answer' column and the correct/incorrect icon indicator in the theme functions.
compare this to
file: quiz.pages.inc
function: theme_quiz_admin_summary
line: 824
visiting the report via /admin/quiz/reports/X/results in the correct display.
Unless there is a reason I'm missing to set $showpoints to FALSE for anyone accessing the results from the /user/quiz URL, it should be changed to TRUE in theme_quiz_user_summary. The other option would be to set it to
as it is in the theme_quiz_take_summary function to check if it's a pass/fail test. If that's the case though, then the other two functions (quiz_admin and quiz_user) should probably match it.
file: quiz.pages.inc
function: theme_quiz_user_summary
line: 465
Works for me anyway.
Comment #10
sivaji_ganesh_jojodae commentedThanks #9 helped me to fix this. committed to quiz 3.x branch.