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.
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.
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>