Skip to content

Commit

Permalink
Fixes issue #10923: statistics of questiontype array(numbers) not
Browse files Browse the repository at this point in the history
working

Dev: Problem was query using $query twice instead of $query first and
Dev: $fquery second.
  • Loading branch information
olleharstedt committed Apr 13, 2016
1 parent 9878467 commit bc1a369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/Statistics_userController.php
Expand Up @@ -273,7 +273,7 @@ function actionAction($surveyid,$language=null)
foreach($result as $row)
{
$fquery = "SELECT * FROM {{questions}} WHERE parent_qid = :flt_0 AND language = :lang AND scale_id = 1 ORDER BY question_order, title";
$fresult = Yii::app()->db->createCommand($query)->bindParam(":flt_0", $flt[0], PDO::PARAM_INT)->bindParam(":lang", $sLanguage, PDO::PARAM_STR)->queryAll();
$fresult = Yii::app()->db->createCommand($fquery)->bindParam(":flt_0", $flt[0], PDO::PARAM_INT)->bindParam(":lang", $sLanguage, PDO::PARAM_STR)->queryAll();
foreach($fresult as $frow)
{
$myfield2 = $myfield . reset($row) . "_" . $frow['title'];
Expand Down

0 comments on commit bc1a369

Please sign in to comment.