[Koha-bugs] [Bug 23220] New: Cancelling transfer on returns.pl is subject to a race condition
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jun 26 14:47:39 CEST 2019
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: koha-bugs at lists.koha-community.org
Reporter: nick at bywatersolutions.com
QA Contact: testopia at bugs.koha-community.org
CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com
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.
More information about the Koha-bugs
mailing list