Skip to content

Commit

Permalink
Fixed issue: Simple statistics breaking if survey contains a free tex…
Browse files Browse the repository at this point in the history
…t question
  • Loading branch information
c-schmitz committed Oct 22, 2021
1 parent b2a8679 commit ec55c63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/helpers/admin/statistics_helper.php
Expand Up @@ -2004,7 +2004,8 @@ protected function displaySimpleResults($outputs, $results, $rt, $outputType, $s

//-------------------------- PCHART OUTPUT ----------------------------
list(, $qgid, $qqid) = explode("X", $rt, 3);
$aattr = QuestionAttribute::model()->getQuestionAttributes($outputs['parentqid']);
$attrQid = $outputs['parentqid'] > 0 ? $outputs['parentqid'] : $qqid; // use parentqid if exists
$aattr = QuestionAttribute::model()->getQuestionAttributes($attrQid);

//PCHART has to be enabled and we need some data
//
Expand Down

0 comments on commit ec55c63

Please sign in to comment.