From f93f49c2037a11acc7fc73dea9e8b52d7e7c3696 Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 3 Oct 2019 13:21:35 +0000 Subject: [PATCH] Bug 23730: Fix export of reports To test: 1 - Run a saved report 2 - Attempt to export results 3 - It fails 4 - Apply patch 5 - It succeeds Signed-off-by: Katrin Fischer --- reports/guided_reports.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl index bb4e87efe4..aad0418145 100755 --- a/reports/guided_reports.pl +++ b/reports/guided_reports.pl @@ -888,7 +888,7 @@ elsif ($phase eq 'Export'){ my $reportname = $input->param('reportname'); my $reportfilename = $reportname ? "$reportname-reportresults.$format" : "reportresults.$format" ; - $sql = get_prepped_report( $sql, \@param_names, \@sql_params ); + ($sql, undef) = get_prepped_report( $sql, \@param_names, \@sql_params ); my ($sth, $q_errors) = execute_query($sql); unless ($q_errors and @$q_errors) { my ( $type, $content ); -- 2.11.0