From 04b15ff5a9a18c0499d63850635dd206a6795e19 Mon Sep 17 00:00:00 2001 From: Andrew Fuerste Henry Date: Tue, 9 Apr 2024 14:51:17 +0000 Subject: [PATCH] Bug 36555: Add report_id to download file name To test: - apply patch, restart all - run a report - export results - confirm file name is the report ID, followed by report name Signed-off-by: Barbara Johnson Signed-off-by: Nick Clemens 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 61c29a0c0f..840d6081bb 100755 --- a/reports/guided_reports.pl +++ b/reports/guided_reports.pl @@ -620,7 +620,7 @@ elsif ($op eq 'export'){ my @sql_params = $input->multi_param('sql_params'); my $format = $input->param('format'); my $reportname = $input->param('reportname'); - my $reportfilename = $reportname ? "$reportname-reportresults.$format" : "reportresults.$format"; + 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 ); -- 2.39.5