]> git.koha-community.org Git - koha.git/commit
Bug 14013 - Use name of a saved report as part of the file name for download
authorMarc Véron <veron@veron.ch>
Sun, 19 Apr 2015 16:40:09 +0000 (18:40 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 22 Apr 2015 17:34:06 +0000 (14:34 -0300)
commit9cb1fe10d7ec9aa37f0f9fa691bf55cbed08959a
tree9bb236ddd7fb56073955bed85f4bee9cd966e026
parent40e4722a957102a52ece9cd4f21ab6fd902f3c18
Bug 14013 - Use name of a saved report as part of the file name for download

This patch propoeses the name of a saved report as part of the download file name.

To test:

- Apply patch
- Got to Home > Reports > Guided reports wizard > Saved reports (or create a new report from sql)
- Run a saved report
- Download the report (as csv, tab, ods)
Result: The downlaod file name proposed should be prepended by the report name, separated with a -

- Bonus test: Try to downlaod saved reports which have special character in their name.

NOTE: Used "ñ/â is N/A" as a report name. The /'s were translated
      to underscored, but the letters were as expected.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
reports/guided_reports.pl