Skip to content

Commit

Permalink
Remove MySQL specific quotes from a survey criteria (#1002)
Browse files Browse the repository at this point in the history
Breaks Postgres if we don't.
  • Loading branch information
gwn authored and TonisOrmisson committed Feb 8, 2018
1 parent 1d3a633 commit be1d2d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Survey.php
Expand Up @@ -1767,7 +1767,7 @@ private function getQuestionOrderCriteria()
);
$criteria->order = Yii::app()->db->quoteColumnName('groups.group_order').','
.Yii::app()->db->quoteColumnName('t.question_order');
$criteria->addCondition('`groups`.`gid` =`t`.`gid`', 'AND');
$criteria->addCondition('groups.gid = t.gid', 'AND');
return $criteria;
}

Expand Down

0 comments on commit be1d2d3

Please sign in to comment.