Skip to content

Commit

Permalink
Fixed issue #10774: Column header at wrong position
Browse files Browse the repository at this point in the history
Dev: Always show "Answer" header for non-numerical questions.
  • Loading branch information
olleharstedt committed Apr 13, 2016
1 parent b2aaf0f commit 1d546c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
5 changes: 2 additions & 3 deletions application/helpers/admin/statistics_helper.php
Expand Up @@ -1782,7 +1782,7 @@ protected function displaySimpleResults($outputs, $results, $rt, $outputType, $s
$fname= "$al[1]";
}

$bAnswer = false; // For view
$bAnswer = true; // For view
$bSum = false;
}

Expand Down Expand Up @@ -2388,7 +2388,6 @@ protected function displaySimpleResults($outputs, $results, $rt, $outputType, $s
*/
protected function displayResults($outputs, $results, $rt, $outputType, $surveyid, $sql, $usegraph, $browse, $sLanguage)
{

/* Set up required variables */
$TotalCompleted = 0; //Count of actually completed answers
$statisticsoutput="";
Expand Down Expand Up @@ -2652,7 +2651,7 @@ protected function displayResults($outputs, $results, $rt, $outputType, $surveyi
$fname= "$al[1]";
}

$bAnswer = false; // For view
$bAnswer = true; // For view
$bSum = false;

if ($browse===true && isset($_POST['showtextinline']) && $outputType=='pdf') {
Expand Down
Expand Up @@ -26,13 +26,11 @@
</tr>
<!-- width depend on how much items... -->
<tr>
<?php if($bAnswer): ?>
<th width='' align='center' >
<strong>
<?php eT("Answer");?>
</strong>
</th>
<?php endif; ?>
<th width='' align='center' >
<strong>
<?php eT("Answer");?>
</strong>
</th>

<th width='' align='center' >
<strong><?php eT("Count"); ?></strong>
Expand Down

0 comments on commit 1d546c6

Please sign in to comment.