Skip to content

Commit

Permalink
Fixed issue #6931: Array questions do not display graphs by default e…
Browse files Browse the repository at this point in the history
…ven if set to Yes - patch by pfpDave
  • Loading branch information
c-schmitz committed Nov 30, 2012
1 parent 4b1c197 commit 949a083
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions application/helpers/admin/statistics_helper.php
Expand Up @@ -535,8 +535,9 @@ protected function buildOutputList($q, $language, $outputType, $sql, $oLanguage)
$statlang = $oLanguage;
$firstletter = Question_types::model()->findByAttributes(array('class' => substr(get_class($q), 0, -8)))->getAttribute('legacy'); //AJS
$sDatabaseType = Yii::app()->db->getDriverName();
$statisticsoutput = "";

$statisticsoutput="";
$qqid = "";

/* Some variable depend on output type, actually : only line feed */
switch ($outputType) {
case 'xls':
Expand Down Expand Up @@ -1360,7 +1361,7 @@ protected function buildOutputList($q, $language, $outputType, $sql, $oLanguage)
$alist[] = array("", $statlang->gT("No answer"));
}

return array("alist" => $alist, "qtitle" => $qtitle, "qquestion" => $qquestion, "qtype" => $qtype, "statisticsoutput" => $statisticsoutput); //AJS
return array("alist"=>$alist, "qtitle"=>$qtitle, "qquestion"=>$qquestion, "qtype"=>$qtype, "statisticsoutput"=>$statisticsoutput, "parentqid"=>$qqid);
}

/**
Expand Down

0 comments on commit 949a083

Please sign in to comment.