Matt,
I believe there is a bug with the quiz module. It assigns quiz-takers a grade based on the total number of questions in the database, not on the number of questions in the quiz.
For example, I took the 20 question of a quiz and scored 18 out of 142 possible points (13%), which should be 18 out of 20 (90%).
I know you have been busy; if you don't have time to fix this bug soon. Would you please let me know?
Comments
Comment #1
skyredwangIn quiz.module
Change
line 1330-1334
from
to
$sql = 'SELECT question_nid AS child_nid, question_vid AS child_vid, type
FROM {quiz_node_results_answers}
LEFT JOIN {node} ON (question_nid = nid AND question_vid = vid)
WHERE result_id = %d';
$results = db_query($sql, $rid);
Comment #2
mbutcher commentedThanks, skyredwang, for the fix. It is now committed.
Comment #3
skyredwangmbutcher, the patch still has a problem. Quiz told someone that he got 17 out of 20, but reviewing the test, it only showed 2 questions answered wrong.
Comment #4
mbutcher commentedAre you still noticing this with recent dev releases of Quiz? I'm trying to re-create, but haven't yet been able to.
Comment #5
mbutcher commentedMoving this up to 3.0 ALPHA
Comment #6
skyredwangupgraded to alpha1. quick test. don't see the problem again.
I will test more.....
Comment #7
mbutcher commentedI am going to mark this as fixed, given that nobody has seen this recently. If it pops up again, though, either re-open this or file a new (critical) issue.
Comment #9
brain2xml commentedI just install 3.0
on quize result page I have
This person got of possible points.
Total score: %
Comment #10
mbutcher commentedCan you please (a) open a new issue, and (b) provide lots of details?
Matt