Skip to content

Commit

Permalink
Fixed issue #11240: Numerical statistics not working
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jun 6, 2016
1 parent 1b1b626 commit 5be49f3
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions application/views/admin/export/statistics_subviews/_question.php
Expand Up @@ -16,7 +16,7 @@

<?php echo "<!-- Question type : $flt[2] -->"; ?>
<div class="col-sm-4 question-filter-container">
<?php if ($flt[2]=='M' || $flt[2]=='|' || $flt[2]=='P' || $flt[2]=='N' || $flt[2]=='L' || $flt[2]=='5' || $flt[2]=='G' || $flt[2]=='I' || $flt[2]=='O' || $flt[2]=='Y' || $flt[2]=='!'): ?>
<?php if ($flt[2]=='M' || $flt[2]=='|' || $flt[2]=='P' || $flt[2]=='L' || $flt[2]=='5' || $flt[2]=='G' || $flt[2]=='I' || $flt[2]=='O' || $flt[2]=='Y' || $flt[2]=='!'): ?>
<!-- TYPE =='M' || 'P' || 'N' || 'L' || '5' || 'G' || 'I' || 'O' || 'Y' || '!' -->
<input type='checkbox'
id='filter<?php echo $myfield; ?>'
Expand Down Expand Up @@ -169,8 +169,22 @@


case "N": // Numerical

//textfields for greater and less than X
?>
<input type='checkbox'
id='filter<?php echo $myfield; ?>'
name='summary[]'
value='N<?php echo $myfield; ?>' <?php
if (isset($summary) && (array_search("{$surveyid}X{$flt[1]}X{$flt[0]}", $summary) !== FALSE
|| array_search("M{$surveyid}X{$flt[1]}X{$flt[0]}", $summary) !== FALSE
|| array_search("P{$surveyid}X{$flt[1]}X{$flt[0]}", $summary) !== FALSE
|| array_search("N{$surveyid}X{$flt[1]}X{$flt[0]}", $summary) !== FALSE))
{ echo " checked='checked'"; }
?>
/>
<label for='filter<?php echo $myfield; ?>'>&nbsp;<?php echo $flt[3].' - '.$oStatisticsHelper::_showSpeaker(flattenText($flt[5],true)); ?>
</label>
<?php
$myfield2="{$myfield}G";
$myfield3="{$myfield}L";
echo "\t<span class='smalltext'>".gT("Number greater than").":</span><br />\n"
Expand Down

0 comments on commit 5be49f3

Please sign in to comment.