Bug 26136: Prevent double submit on checkin-form
authorNick Clemens <nick@bywatersolutions.com>
Tue, 4 Aug 2020 13:13:43 +0000 (13:13 +0000)
committerAleisha Amohia <aleishaamohia@hotmail.com>
Tue, 1 Sep 2020 22:25:44 +0000 (10:25 +1200)
commit90fdf1fa07e24fa80dac3460849f543565cfcb6a
tree6d0fd3f5c713ea758728f3c2b87d8599bd136d79
parentd3b130d1ab1f8c751912accc4c5371c7a7298825
Bug 26136: Prevent double submit on checkin-form

To test:
 1 - Browse to Circulation->Check-in
 2 - Type a barcode into the Check in box
 3 - Hit Enter as many as times as you can
 4 - Check the statistics table:
    SELECT * FROM statistics WHERE itemnumber={itemnumber} AND DATE(datetime)=CURDATE();
 5 - Note you have multiple lines for the same item at the same time
 6 - Apply patch
 7 - Reload the page
 8 - Type the barcode
 9 - Press Enter even more fast and more furiously
10 - Check the statistics table
11 - Only one entry, huzzah!

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 44f54aac602ae99d83d954a2f102d77ff93ecfa7)
(cherry picked from commit 9d85636bf0db1350fb4f7e83e6cca2fcc0b1038b)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt