Bug 18497: Use report id to retrieve saved SQL instead of passing param
authorNick Clemens <nick@bywatersolutions.com>
Wed, 3 Jan 2018 13:13:40 +0000 (13:13 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 2 Feb 2018 13:20:43 +0000 (10:20 -0300)
commit6f5a9c98bcc38d6481be0463747086bfcf705a70
tree83cba1fba0471072ea998fbf4a7766fc290f2641
parentbd2d2fd433baeca3d311c403b482c6a2000a6668
Bug 18497: Use report id to retrieve saved SQL instead of passing param

This patch takes some of the code when executing report and moves it to
a sub to be reused when downloading

To test:
1 - Run some very long report (see comment #1)
2 - Try to download, erk!
3 - Apply patch
4 - Run report, results hould not have changed
5 - Try to download, success!
6 - Ensure reports work as before

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc
reports/guided_reports.pl