From a16d1807aac1bd2cb6dda4f29ebe12e02fe41a15 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 1 May 2024 10:33:43 +0000 Subject: [PATCH] Bug 36555: (QA follow-up) Tidy Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer --- reports/guided_reports.pl | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl index 840d6081bb..b7c722945a 100755 --- a/reports/guided_reports.pl +++ b/reports/guided_reports.pl @@ -613,15 +613,16 @@ elsif ($op eq 'cud-share'){ elsif ($op eq 'export'){ # export results to tab separated text or CSV - my $report_id = $input->param('id'); - my $report = Koha::Reports->find($report_id); - my $sql = $report->savedsql; - my @param_names = $input->multi_param('param_name'); - my @sql_params = $input->multi_param('sql_params'); - my $format = $input->param('format'); - my $reportname = $input->param('reportname'); - my $reportfilename = $reportname ? "$report_id-$reportname-reportresults.$format" : "$report_id-reportresults.$format" ; - my $scrubber = C4::Scrubber->new(); + my $report_id = $input->param('id'); + my $report = Koha::Reports->find($report_id); + my $sql = $report->savedsql; + my @param_names = $input->multi_param('param_name'); + my @sql_params = $input->multi_param('sql_params'); + my $format = $input->param('format'); + my $reportname = $input->param('reportname'); + my $reportfilename = + $reportname ? "$report_id-$reportname-reportresults.$format" : "$report_id-reportresults.$format"; + my $scrubber = C4::Scrubber->new(); ($sql, undef) = $report->prep_report( \@param_names, \@sql_params ); my ( $sth, $q_errors ) = execute_query( { sql => $sql, report_id => $report_id } ); -- 2.39.5