From 77db01b2e00f7eecf8ff0c40252e80495a245819 Mon Sep 17 00:00:00 2001 From: kw-pr <9133572+kw-pr@users.noreply.github.com> Date: Wed, 17 Oct 2018 14:34:33 +0200 Subject: [PATCH] Fixed issue: Statistics export as PDF opens the PDF in the current tab. It should create a download like the Excel export. (#982) --- application/controllers/admin/statistics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/admin/statistics.php b/application/controllers/admin/statistics.php index 3f106e83c75..0cdd36f5b31 100644 --- a/application/controllers/admin/statistics.php +++ b/application/controllers/admin/statistics.php @@ -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':