Skip to content

Commit

Permalink
Fixed issue: Statistics export as PDF opens the PDF in the current ta…
Browse files Browse the repository at this point in the history
…b. It should create a download like the Excel export. (#982)
  • Loading branch information
kw-pr authored and c-schmitz committed Oct 17, 2018
1 parent 7da9c32 commit 77db01b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/statistics.php
Expand Up @@ -468,7 +468,7 @@ public function run($surveyid = 0, $subaction = null)
$statisticsoutput .= $helper->generate_html_chartjs_statistics($surveyid, $summary, $summary, $usegraph, $outputType, 'DD', $statlang);
break;
case 'pdf':
$helper->generate_statistics($surveyid, $summary, $summary, $usegraph, $outputType, 'I', $statlang);
$helper->generate_statistics($surveyid, $summary, $summary, $usegraph, $outputType, 'D', $statlang);
exit;
break;
case 'xls':
Expand Down

0 comments on commit 77db01b

Please sign in to comment.