Skip to content

Commit

Permalink
Fixed issue #16604: Adding condition triggers bulk update for complet…
Browse files Browse the repository at this point in the history
…e database (#1788)
  • Loading branch information
gabrieljenik committed Mar 2, 2021
1 parent 6ff9b35 commit 91945dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/expressions/em_manager_helper.php
Expand Up @@ -794,7 +794,7 @@ public static function UpgradeConditionsToRelevance($surveyId=NULL, $qid=NULL)

// Get survey ID from question if qid is specified and surveyId is null
if(is_null($surveyId) && !empty($qid)) {
$surveyId = Question::model()->findByPk($qid)->sid;
$surveyId = Question::model()->find("qid = :qid", array(":qid"=> $qid))->sid;
}

// Cheat and upgrade question attributes here too.
Expand Down

0 comments on commit 91945dc

Please sign in to comment.