Bug 13945: Prevent multiple dialog modals from popping up when capturing a hold at checkin

1. Select/Create Library Branches:
    - Select or create two library branches: Library A and Library B.

2. Locate/Create Item:
    - Locate or create an item with the "Current library" and "Home library" set to Library A.

3. Place Hold:
    - Place a hold on the item for a patron whose pickup location is Library B.

4. Check-in at Library A - First Attempt:
    - Check in the item at Library A.
    - Verify that the 'Hold found' modal pops up.
    - Click on 'Confirm hold and transfer'.

5. Check-in at Library A - Second Attempt:
    - Check in the item at Library A again.
    - Verify that the 'Hold found' modal pops up.
    - Click on 'Ignore'.
    - Verify that the 'Please return this item to (Library B)' modal has popped up behind it.

6. Apply Patch and Restart:
    - Apply the patch to the system.
    - Restart all relevant services.

7. Repeat Check-in Process:
    - Repeat steps 4 and 5.
    - Verify that no matter how many times you check in the item and hit 'Ignore' or 'Confirm the hold', the second modal does not pop up.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 87a2aa8a62)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Laura Escamilla 2024-05-15 15:34:22 +00:00 committed by Lucas Gass
parent d3db300f3d
commit 464978912b
1 changed files with 1 additions and 1 deletions

View File

@ -739,7 +739,7 @@
</div> <!-- /#hold-found1 -->
[% END # /IF waiting %]
[% IF transfer || needstransfer %]
[% IF (transfer || needstransfer) && !(reserved and !recalled and !waitingrecall) %]
[% IF Koha.Preference('TransfersBlockCirc') %]
<div id="item-transfer-modal" class="modal fade audio-alert-action block">
[% ELSE %]