https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43991

            Bug ID: 43991
           Summary: Pickup location change modal is unusable on narrow
                    OPAC screens
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: OPAC
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
  Target Milestone: ---

On the OPAC summary page (opac-user.pl), on a narrow/mobile viewport, pressing
"Change" next to a hold's pickup location greys out the page but shows no
dialog. The patron cannot choose a library or dismiss the modal, and is stuck
unless they switch the browser to desktop mode. On desktop the modal displays
correctly.

Cause: the per-hold change pickup modal (#changePickup<reserve_id>) is rendered
inside the "Pickup location" table cell of the holds table
(includes/holds-table.inc). On narrow screens DataTables Responsive hides that
column (td.dtr-hidden, display:none) and copies its markup into the expanded
child row, which leaves two elements with the same id. Bootstrap resolves
data-bs-target to the first match, which is the modal inside the hidden cell.
The backdrop (appended to body) is shown, but the dialog has no layout box.

Test plan:
1. Enable OPACAllowUserToChangeBranch (e.g. "pending,intransit,suspended")
2. Place a hold for a patron
3. Log in to the OPAC as that patron at a narrow viewport (e.g. 375px wide,
browser devtools device emulation) and open the Holds tab
4. Expand the hold row with the "+" control and press "Change" next to the
pickup location
5. Note the page greys out and no dialog is visible
6. Apply the patch and reload; repeat
7. Confirm the dialog is visible, pick another library, Save, and confirm the
pickup location changes
8. Repeat at desktop width and confirm the modal still works

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to