If the matching question is enabled, it is possible that an error is triggered when updating.
The update in quiz_question generates an error.
It is looking for a table quiz_matching_properties that is added in another update inside the matching question type.
quiz_question module Update #7402
Failed: PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'quiz_matching_properties' doesn't exist: SELECT choice_penalty FROM {quiz_matching_properties} WHERE nid = :nid AND vid = :vid; Array ( [:nid] => 1101 [:vid] => 1483 ) in MatchingQuestion->getNodeProperties() (quiz/question_types/matching/matching.classes.inc).
Add a hook_update_dependencies to quiz_question only run the update after the matching update if the module is enabled.
Comment | File | Size | Author |
---|---|---|---|
#1 | quiz-update_dependencies-2444863-1.patch | 718 bytes | Jamesap |
Comments
Comment #1
Jamesap CreditAttribution: Jamesap commentedAdding patch
Comment #2
Jamesap CreditAttribution: Jamesap commentedComment #4
falcon CreditAttribution: falcon commentedThanks! The fix has been commited and a beta4 version has been released.
Comment #5
apaderno