In quiz.install, quiz_update_6306() adds a new time_left column to the quiz_node_results table. But in quiz_schema(), the new column isn't defined for that table (easily confirmed; there are no other occurrences of time_left in the entire file).
It looks like this would cause problems with people using the latest version of Quiz for the first time.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | quiz-install-485454.patch | 1.48 KB | dpantele |
| #4 | hook_install-time_left-column.patch | 543 bytes | benoit.borrel |
Comments
Comment #1
sivaji_ganesh_jojodae commentedGood catch !! Thank you for reporting this bug, it has been fixed now.
Comment #3
danielcala commentedHi sivaji, could you add this fix to 6.x-3.0 version
Thanks an regards
Comment #4
benoit.borrel commentedDanielca
Here is attached the patch requested @ #3.
To apply it:
Once applied, you can either:
UPDATE `system` SET `schema_version` = '6305' WHERE `system`.`filename` = 'sites/all/modules/quiz/quiz.module';Comment #5
dpantele commentedSorry, it's not fixed.
In my quiz.install file I see
But I believe that the table 'quiz_node_results' should have this string.
Patch is applied (also tries to fix all failures caused by previous patches).
Comment #6
sivaji_ganesh_jojodae commented@PanDa777
time_leftis required in both thequiz_node_resultsas well asquiz_node_properties.-
quiz_node_propertiesis used when you created/edit quiz node. Referquiz_load()andquiz_insert().-
quiz_node_resultsis used to update the remaining time as the quiz proceeds. Referquiz_take_quiz()I have already fixed this in quiz 4.x before my gsoc review forgot to fix it in quiz 3.x. Thanks for reporting this.