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

Josef Moravec <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #91021|0                           |1
        is obsolete|                            |

--- Comment #4 from Josef Moravec <[email protected]> ---
Created attachment 91034
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91034&action=edit
Bug 23220: Prevent form submission before redirect

To test:
 1 - Check in an item to generate a transfer (form another library, no
floating)
 2 - Check it in again, click 'Cancel transfer'
 3 - It may or may not work
 4 - To highlight the issue edit return.tt to add the delay line as below:
        $('.cancel-transfer').on("click",function(e){
                delay(5000);
               
window.location.href='/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber |
html %]&amp;canceltransfer=1'
        });
 5 - Check in the item repeatedly, click 'Cancel transfer'
 6 - View the item in the staff or opac and verify it remains in transit
 7 - Undo changes above, apply patch
 8 - Test 'Cancel transfer', note it works
 9 - Add the delay back in, confirm it still works

Signed-off-by: Owen Leonard <[email protected]>

Signed-off-by: Josef Moravec <[email protected]>

-- 
You are receiving this mail because:
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