Bug 40298 - A select2 in a bootstrap modal, like in the patron card batch patron search modal, needs it's parent defined
Summary: A select2 in a bootstrap modal, like in the patron card batch patron search m...
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Label/patron card printing (show other bugs)
Version: 25.05
Hardware: All All
: P5 - low trivial
Assignee: Michael Hafen
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-02 23:56 UTC by Michael Hafen
Modified: 2025-07-03 12:04 UTC (History)
0 users

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 40298 - define select2 parent in patron search modal (1.59 KB, patch)
2025-07-02 23:59 UTC, Michael Hafen
Details | Diff | Splinter Review
Bug 40298: define select2 parent in patron search modal (1.75 KB, patch)
2025-07-03 12:04 UTC, Owen Leonard
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Hafen 2025-07-02 23:56:02 UTC
A select2 in a bootstrap modal, like the sort1 and sort2 fields in the patron card -> new batch -> patron search modal, needs it's parent defined.  Otherwise the "dropdown" is anchored to the body, and is stuck behind the modal.
Comment 1 Michael Hafen 2025-07-02 23:59:46 UTC
Created attachment 183721 [details] [review]
Bug 40298 - define select2 parent in patron search modal

The patron search modal in the patron card creator -> new batch -> patron
search has two select2 modals, sort1 and sort2.  If these are not anchored
to the modal they will be anchored to the body element and appear behind the
modal.

Trivial patch so no test plan.
Comment 2 Owen Leonard 2025-07-03 12:04:07 UTC
Created attachment 183751 [details] [review]
Bug 40298: define select2 parent in patron search modal

The patron search modal in the patron card creator -> new batch ->
patron search has two select2 modals, sort1 and sort2.  If these are not
anchored to the modal they will be anchored to the body element and
appear behind the modal.

To test, apply the patch and go to Tools -> Patron card creator -> New
-> Card batch.

- Click "Add patron(s)"
- Test the "Sort 1" and "Sort 2" dropdowns. They should work correctly.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>