@@ -, +, @@
1 - Create a report that takes multiple parameters, e.g.:
<> as four, <> as five
2 - Run this report, note you are asked for five parameters
3 - Apply patch
4 - Update database
5 - Run report, note you are asked for three params
6 - Verify the results reflect the supplied parameters
7 - Export the report and verify results
8 - Alter the URL and provide 5 params as sql_params and no param_name
variables i.e.
http://localhost:8081/cgi-bin/koha/reports/guided_reports.pl?reports=1&phase=Run+this+report&sql_params=Banana&sql_params=CPL&sql_params=0&sql_params=Orange&sql_params=LPL
9 - Verify results come out as expected. i.e. 5 different values that
are those of the URL.
---
.../prog/en/includes/reports-toolbar.inc | 1 +
.../en/modules/reports/guided_reports_start.tt | 1 +
reports/guided_reports.pl | 22 +++++++++++++++++-----
3 files changed, 19 insertions(+), 5 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc
@@ -50,6 +50,7 @@
[% IF ( execute ) %]
[% BLOCK params %]
[%- FOREACH param IN sql_params %]&sql_params=[% param %][% END %]
+ [%- FOREACH param_name IN param_names %]¶m_name=[% param_name %][% END %]
[%- END %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
@@ -663,6 +663,7 @@ canned reports and writing custom SQL reports.