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.

CommentFileSizeAuthor
#1 quiz-update_dependencies-2444863-1.patch718 bytesJamesap
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jamesap’s picture

Status: Active » Needs review
FileSize
718 bytes

Adding patch

Jamesap’s picture

Issue summary: View changes

  • falcon committed 0611c98 on 7.x-4.x authored by Jamesap
    Issue #2444863 by Jamesap: Quiz 4beta3 update dependencies
    
falcon’s picture

Status: Needs review » Closed (fixed)

Thanks! The fix has been commited and a beta4 version has been released.

apaderno’s picture

Assigned: Jamesap » Unassigned
Issue tags: -#Update