Bug 40819

Summary: Guided reports select column should not be initialized as select2
Product: Koha Reporter: Brendan Lawlor <blawlor>
Component: ReportsAssignee: Brendan Lawlor <blawlor>
Status: Needs documenting --- QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: fridolin.somers, jonathan.druart, lisette
Version: MainKeywords: roadmap_25_05
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Crowdfunding goal: 0
Patch complexity: Trivial patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
25.11.00,25.05.04
Circulation function:
Bug Depends on: 37050    
Bug Blocks:    
Attachments: Bug 40819: Only initialize select2 for #report_param_form
Bug 40819: Only initialize select2 for #report_param_form

Description Brendan Lawlor 2025-09-16 17:41:52 UTC
This is a follow up from bug 37050.

To reproduce:
1. Go to Reports > Create guided report
2. Click Next >>
3. Click Next >>
3. Notice the form has been initialized as select2
Comment 1 Brendan Lawlor 2025-09-16 17:54:08 UTC
Created attachment 186503 [details] [review]
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>>
Comment 2 Jonathan Druart 2025-09-19 07:22:35 UTC
Created attachment 186605 [details] [review]
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>>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 3 Jonathan Druart 2025-09-19 07:23:23 UTC
Trivial but major, passing QA.
Comment 4 Lucas Gass (lukeg) 2025-09-19 14:45:26 UTC
Nice work everyone!

Pushed to main for 25.11
Comment 5 Paul Derscheid 2025-09-25 16:31:26 UTC
Nice work everyone!

Pushed to 25.05.x
Comment 6 Fridolin Somers 2025-10-16 09:14:55 UTC
Depends on Bug 37050 not in 24.11.x