Bugzilla – Attachment 165954 Details for
Bug 36555
Add report_id to file name when exporting report results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36555: Add report_id to download file name
Bug-36555-Add-reportid-to-download-file-name.patch (text/plain), 1.27 KB, created by
Nick Clemens (kidclamp)
on 2024-05-01 10:34:26 UTC
(
hide
)
Description:
Bug 36555: Add report_id to download file name
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-05-01 10:34:26 UTC
Size:
1.27 KB
patch
obsolete
>From 59010b2d93318b9a9ac5823a5f315882cbd10ca4 Mon Sep 17 00:00:00 2001 >From: Andrew Fuerste Henry <andrewfh@dubcolib.org> >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 <barbara.johnson@bedfordtx.gov> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > 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 61c29a0c0f0..840d6081bbb 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.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36555
:
164564
|
164565
| 165954 |
165955