diff --git a/application/models/SurveyDynamic.php b/application/models/SurveyDynamic.php index 63faec01758..a84f860d13a 100644 --- a/application/models/SurveyDynamic.php +++ b/application/models/SurveyDynamic.php @@ -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; } } diff --git a/themes/survey/vanilla/views/subviews/printanswers/question_types/template_array-multi-flexi-text.twig b/themes/survey/vanilla/views/subviews/printanswers/question_types/template_array-multi-flexi-text.twig index 0ecfdcac9a2..aba6461bfee 100644 --- a/themes/survey/vanilla/views/subviews/printanswers/question_types/template_array-multi-flexi-text.twig +++ b/themes/survey/vanilla/views/subviews/printanswers/question_types/template_array-multi-flexi-text.twig @@ -6,8 +6,8 @@ {% if subquestion.question_order == 1 %}