From 18c2304dc741ea1f35e212a4954498d1f1e7144e Mon Sep 17 00:00:00 2001 From: Brendan Lawlor Date: Thu, 6 Jun 2024 19:49:47 +0000 Subject: [PATCH] Bug 37050: Add select2 to SQL reports multi select This patch adds select 2 to multi-select parameter fields in SQL reports. If no selections are made for a multi-select all authorised values will be used by default. This allows reports to be written where a multi select parameter is optional. To test: 1. Apply patch 2. Go to Reports and create a report from SQL select * from items where homebranch in <> and itype in <> 3. Run the report making multiple selections for each parameter and making single selections for each parameter 4. Run the report making multiple selections for one parameter and no selections in another parameter 5. Check that the results are as you would expect 6. On the results page click 'Show SQL code' 7. Confirm that the codes are included according to your selections 8. Note that when no selections are made for a parameter all codes are used by defaut Sponsored-by: CLAMS Signed-off-by: Owen Leonard Signed-off-by: Pedro Amorim --- .../modules/reports/guided_reports_start.tt | 23 +++++++++++++++++++ 1 file changed, 23 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 ed1e0cf7de..6737b73121 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 @@ -1575,11 +1575,14 @@ [% Asset.css("lib/codemirror/highlight.css") | $raw %] [% Asset.js( "js/mana.js" ) | $raw %] [% Asset.js("js/form-submit.js") | $raw %] + [% INCLUDE 'select2.inc' %] +