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

            Bug ID: 23220
           Summary: Cancelling transfer on returns.pl is subject to a race
                    condition
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Circulation
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]
  Target Milestone: ---

To recreate:
1 - Check in an item
2 - If AutomaticItemReturn = Do it will generate a transfer, otherwise accept
the transfer
3 - Check the item in again - your modal should now have a 'Cancel transfer'
button
4 - Click it
5 - It may or may not work, depending on system speed
6 - edit return.tt, find the cancel transfer JS and edit it:
            $('.cancel-transfer').on("click",function(e){
                delay(5000);
               
window.location.href='/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber |
html %]&canceltransfer=1'
            });
7 - Now check in item and hit cancel transfer
8 - Repeat and note the 'Cancel transfer' button remains
9 - Click it and then view the item, it is in transit

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to