Skip to content

Commit

Permalink
Fixed issue #10941: Two problems in statistics PDF export
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Apr 20, 2016
1 parent 6b06367 commit 270c22a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion application/helpers/admin/export/PdfWriter.php
Expand Up @@ -62,7 +62,7 @@ public function outputRecord($headers, $values, FormattingOptions $oOptions)
{
if ($gid != 0)
{
$this->pdf->addGidAnswer($questions[0]['group_name']);
$this->pdf->addGidAnswer($questions[0]['group_name'], '');
}
foreach ($questions as $question)
{
Expand Down
7 changes: 2 additions & 5 deletions application/helpers/admin/statistics_helper.php
Expand Up @@ -3417,11 +3417,8 @@ protected function displayResults($outputs, $results, $rt, $outputType, $surveyi
$tablePDF = array_merge_recursive($tablePDF, $footPDF);
if (!isset($headPDF))
{
if ($outputs['qtype'] === "|")
{
}
// file upload lack headPDF
//throw new CException('$headPDF is not defined');
// TODO: Why is $headPDF sometimes undefined here?
$headPDF = array();
}
$this->pdf->headTable($headPDF,$tablePDF);
//$this->pdf->tableintopdf($tablePDF);
Expand Down

0 comments on commit 270c22a

Please sign in to comment.