Skip to content

Commit

Permalink
Fixed issue #16746: Filtering on responses for questions of type Arra…
Browse files Browse the repository at this point in the history
…y Dual Scale was not working in Statistics (#1641)

Applied changes from #1062 to LTS
  • Loading branch information
gabrieljenik committed Nov 10, 2020
1 parent 952f894 commit 3d11b46
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -861,7 +861,7 @@
echo "<!-- $myfield2 - ";
if (isset($_POST[$myfield2]))
{
echo htmlspecialchars($_POST[$myfield2]);
echo htmlspecialchars(implode(',',$_POST[$myfield2]));
}
echo " -->\n";

Expand Down Expand Up @@ -908,7 +908,7 @@
$fresult = Answer::model()->getQuestionsForStatistics('*', "qid='$flt[0]' AND language = '{$language}' AND scale_id = 0", 'sortorder, code');

//this is for debugging only
echo "\t<select name='{$surveyid}X{$flt[1]}X{$flt[0]}{$row[0]}#{0}[]' multiple='multiple' class='form-control'>\n";
echo "\t<select name='{$surveyid}X{$flt[1]}X{$flt[0]}{$row[0]}#0[]' multiple='multiple' class='form-control'>\n";

//list answers
foreach($fresult as $frow)
Expand All @@ -933,7 +933,7 @@
echo "<!-- $myfield2 - ";
if (isset($_POST[$myfield2]))
{
echo htmlspecialchars($_POST[$myfield2]);
echo htmlspecialchars(implode(',',$_POST[$myfield2]));
}

echo " -->\n";
Expand Down Expand Up @@ -970,7 +970,7 @@
$fresult = Answer::model()->getQuestionsForStatistics('*', "qid='$flt[0]' AND language = '$language' AND scale_id = 1", 'sortorder, code');

//this is for debugging only
echo "\t<select name='{$surveyid}X{$flt[1]}X{$flt[0]}{$row[0]}#{1}[]' multiple='multiple' class='form-control'>\n";
echo "\t<select name='{$surveyid}X{$flt[1]}X{$flt[0]}{$row[0]}#1[]' multiple='multiple' class='form-control'>\n";

//list answers
foreach($fresult as $frow)
Expand Down

0 comments on commit 3d11b46

Please sign in to comment.