From 702c727470d332615fb1428c55f503183935f29d Mon Sep 17 00:00:00 2001
From: Nick Clemens
Date: Wed, 12 Dec 2018 16:16:50 +0000
Subject: [PATCH] Bug 21991: Pass param names to report limit tool
To test:
1 - Define a report like:
SELECT barcode, itemnumber
FROM items
WHERE (homebranch = <> AND 0 ) OR
<>=<>
2 - Run it, you get results
3 - Select 'Rows to display' 50
4 - No results
5 - Apply patch
6 - Run report
7 - Change display rows
8 - Results remain!
Signed-off-by: Jonathan Druart
Signed-off-by: Martin Renvoize
Signed-off-by: Nick Clemens
---
.../prog/en/modules/reports/guided_reports_start.tt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
index 6c551b0697..8a219131c3 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
@@ -710,6 +710,9 @@ canned reports and writing custom SQL reports.
[% FOREACH p IN sql_params %]
[% END %]
+ [% FOREACH n IN param_names %]
+
+ [% END %]