Skip to content
Snippets Groups Projects
Commit 01d20adb authored by Freek van Rijt's avatar Freek van Rijt Committed by Devin Zuczek
Browse files

Issue #2230221 by FreekVR, jhedstrom: Incompatible with the Entity Cache module

parent fbc89265
No related branches found
No related tags found
No related merge requests found
......@@ -2264,16 +2264,6 @@ function quiz_update_max_score_properties($quizzes_to_update) {
->condition('vid', $quizzes_to_update, 'IN')
->execute();
db_update('node_revision')
->fields(array('timestamp' => REQUEST_TIME))
->condition('vid', $quizzes_to_update, 'IN')
->execute();
db_update('node')
->fields(array('changed' => REQUEST_TIME))
->condition('vid', $quizzes_to_update, 'IN')
->execute();
$results_to_update = db_query('SELECT vid FROM {quiz_node_properties} WHERE vid IN (:vid) AND max_score <> :max_score', array(':vid' => $quizzes_to_update, ':max_score' => 0))->fetchCol();
if (!empty($results_to_update)) {
db_update('quiz_node_results')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment