Bugzilla – Attachment 186503 Details for
Bug 40819
Guided reports select column should not be initialized as select2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40819: Only initialize select2 for #report_param_form
Bug-40819-Only-initialize-select2-for-reportparamf.patch (text/plain), 1.58 KB, created by
Brendan Lawlor
on 2025-09-16 17:54:08 UTC
(
hide
)
Description:
Bug 40819: Only initialize select2 for #report_param_form
Filename:
MIME Type:
Creator:
Brendan Lawlor
Created:
2025-09-16 17:54:08 UTC
Size:
1.58 KB
patch
obsolete
>From 7e4a53ea0776bba18713c110b35fd0f8d19d9926 Mon Sep 17 00:00:00 2001 >From: Brendan Lawlor <blawlor@clamsnet.org> >Date: Tue, 16 Sep 2025 17:47:20 +0000 >Subject: [PATCH] Bug 40819: Only initialize select2 for #report_param_form > >This patch makes the the css selector specifically target the >report_param_form in guided reports > >To test: >1. Go to Reports > Create guided report >2. Click Next >> >3. Click Next >> >3. Notice the form has been initialized as select2 >4. Apply patch and refresh the page >5. Confirm the select column form is back to normal >6. Confirm select2 is still initialized for SQL reports > example: select * from items where homebranch IN <<Library|branches:in>> >--- > .../prog/en/modules/reports/guided_reports_start.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >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 57e7a1d74c..d8be142676 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 >@@ -2475,7 +2475,7 @@ > }); > > // Apply select2 to all select fields having a "multiple" attribute >- let selectFields = document.querySelectorAll('select[multiple]'); >+ let selectFields = document.querySelectorAll('#report_param_form select[multiple]'); > selectFields.forEach((selectField) => { > selectField.style.minWidth = '320px'; > $(selectField).select2(); >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40819
: 186503