Closed (fixed)
Project:
Quiz
Version:
7.x-4.x-dev
Component:
Code - Quiz core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Dec 2011 at 15:43 UTC
Updated:
21 Feb 2012 at 15:46 UTC
The attached patch makes the following changes to the file quiz.pages.inc:
- function quiz_report_form_submit():
-- no longer calls _quiz_remove_unscored_message() when the UPDATE query doesn't affect any row (i.e. db_update(...)->execute() returns 0). Please see http://drupal.org/node/1371970 for more details.
-- uses the D7 fetchObject() i.o. db_fetch_object
-- uses $quiz->keep_results i.o. $quiz->quiz_keep_results
- function quiz_update_total_score_fast() is compliant to the D7 API
| Comment | File | Size | Author |
|---|---|---|---|
| quiz-quiz.pages_.inc_.patch | 4.28 KB | rombapa |
Comments
Comment #0.0
rombapa commentedcorrection
Comment #1
zeezhao commentedHi. Just to let you know that this bug still exists:
- the percentage mark of quiz is still wrong on results page of quiz, even though individual scores on each question now correct. This is for long answer type questions - since question is scored later.
I tested it myself by applying your patch, and also tested with this version that has applied your patches:
http://drupal.org/node/1381014
Thanks
Comment #2
Sabareesh commentedA bit from this patch saved my time a lot.
Comment #3
SteveK commented@Sabareesh.KF , care to share? :)
Comment #4
sivaji_ganesh_jojodae commentedI'm not able to reproduce the bug. It looks like the patch has been committed to sandbox repository and merged back to main repository recently.
Comment #5
sivaji_ganesh_jojodae commentedNoticed that it is still happening when the form in manage questions page is submitted. More explanation about this issue can be found in #1314072: Quiz Results incorrectly calculated when you change the quiz settings.
Comment #6
zeezhao commentedIt is still an issue when you have "long answer" or "short answer" type questions in a quiz, and you edit it to score them.
Comment #7
zeezhao commentedI have changed it to active, since the case is different from #5.
Comment #8
zeezhao commentedtried out very latest dev and created a new quiz and appears fixed. So #5 is a separate issue. Thanks
Comment #8.0
zeezhao commentedadded reference to issue 1371970