From 6a17bf77853a433c71938a1344486932c30d899a 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 Signed-off-by: Martin Renvoize --- 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.39.5