Skip to content

Commit

Permalink
Fixed issue : get good language in print answers for array text and n…
Browse files Browse the repository at this point in the history
…umber
  • Loading branch information
Shnoulle committed Mar 14, 2020
1 parent 5678aec commit d8cc28d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/models/SurveyDynamic.php
Expand Up @@ -954,9 +954,9 @@ public function getQuestionArray($oQuestion, $oResponses, $bHonorConditions, $su
/* Second (X) scale for array text and array number */
if ($oQuestion->parent_qid != 0 && in_array($oQuestion->parents['type'], [";", ":"])) {
$oScaleXSubquestions = Question::model()->findAll(array(
'condition' => "parent_qid = :parent_qid and scale_id = :scale_id",
'condition' => "parent_qid = :parent_qid and scale_id = :scale_id and language =:language",
'order' => "question_order ASC",
'params' => array('parent_qid' => $aQuestionAttributes['parent_qid'], 'scale_id' => 1),
'params' => array(':parent_qid' => $aQuestionAttributes['parent_qid'], ':scale_id' => 1, ":language" => $oQuestion->language),
));
foreach ($oScaleXSubquestions as $oScaleSubquestion) {
$tempFieldname = $fieldname.'_'.$oScaleSubquestion->title;
Expand Down

0 comments on commit d8cc28d

Please sign in to comment.