Skip to content

Commit

Permalink
Fixed issue: relevance SQL failing during survey import
Browse files Browse the repository at this point in the history
Dev: extra apostrophe around SQL removed - apostrophe provided by the db_quote function
  • Loading branch information
jcleeland committed Apr 24, 2012
1 parent 12c1af9 commit ffc5dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/expressions/em_manager_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public static function UpgradeConditionsToRelevance($surveyId=NULL, $qid=NULL)

$queries = array();
foreach ($releqns as $key=>$value) {
$query = "UPDATE {{questions}} SET relevance='".Yii::app()->db->quoteValue($value)."' WHERE qid=".$key;
$query = "UPDATE {{questions}} SET relevance=".Yii::app()->db->quoteValue($value)." WHERE qid=".$key;
dbExecuteAssoc($query);
$queries[] = $query;
}
Expand Down

0 comments on commit ffc5dfa

Please sign in to comment.