Skip to content

Commit

Permalink
Fixed issue #6603: Can not copy conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Sep 28, 2012
1 parent 223ee62 commit a50cec9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/admin/conditionsaction.php
Expand Up @@ -427,9 +427,9 @@ function index($subaction, $iSurveyID=null, $gid=null, $qid=null)
foreach($copyconditionsfrom as &$entry)
$entry = Yii::app()->db->quoteValue($entry);
$query = "SELECT * FROM {{conditions}}\n"
."WHERE cid in ('";
."WHERE cid in (";
$query .= implode(", ", $copyconditionsfrom);
$query .= "')";
$query .= ")";
$result = Yii::app()->db->createCommand($query)->query() or
safeDie("Couldn't get conditions for copy<br />$query<br />");

Expand Down

0 comments on commit a50cec9

Please sign in to comment.