Skip to content
Permalink
Browse files

Fixed issue #14628: Array numbers question type doesn't include prope…

…r subquestion and answer details at "print answers" overview
  • Loading branch information...
dominikvitt committed Oct 9, 2019
1 parent c057b6d commit 95a4f84f060036199927de3911f41a7ff443fdd3
@@ -953,6 +953,7 @@ public function getQuestionArray($oQuestion, $oResponses, $bHonorConditions, $su
foreach (Question::model()->findAllByAttributes(array('parent_qid' => $aQuestionAttributes['parent_qid'], 'scale_id' => ($oQuestion->parents['type'] == '1' ? 2 : 1))) as $oScaleSubquestion) {
$tempFieldname = $fieldname.'_'.$oScaleSubquestion->title;
$aQuestionAttributes['answervalues'][$oScaleSubquestion->title] = isset($oResponses[$tempFieldname]) ? $oResponses[$tempFieldname] : null;
$aQuestionAttributes['answervalueslabels'][$oScaleSubquestion->title] = isset($oScaleSubquestion->question) ? $oScaleSubquestion->question : null;
}
}
@@ -6,8 +6,8 @@
{% if subquestion.question_order == 1 %}
<tr>
<th></th>
{% for colname, value in subquestion.answervalues %}
<th><b>{{colname}}</b></th>
{% for colname, value in subquestion.answervalueslabels %}
<th class="text-center"><b>{{value}} - {{colname}}</b></th>
{% endfor %}
</tr>
{% endif %}
@@ -6,8 +6,8 @@
{% if subquestion.question_order == 1 %}
<tr>
<th></th>
{% for colname, value in subquestion.answervalues %}
<th class="text-center"><b>{{colname}}</b></th>
{% for colname, value in subquestion.answervalueslabels %}
<th class="text-center"><b>{{value}} - {{colname}}</b></th>
{% endfor %}
</tr>
{% endif %}

0 comments on commit 95a4f84

Please sign in to comment.
You can’t perform that action at this time.