Bug 12337 - Multi-clicking the renewal buttons on circulation.pl can trigger "renewal...
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 30 May 2014 11:17:25 +0000 (07:17 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 1 Jul 2014 12:47:38 +0000 (09:47 -0300)
commit88e27fce3f47dcca8fc4a7134fc0dc0b21e52e9c
tree8c119a0d9c709c387872232daa8e5fa4adb44628
parent6d77304c98e9b4c839b3bcf19e1453a7e6ec8aaa
Bug 12337 - Multi-clicking the renewal buttons on circulation.pl can trigger "renewal failed" message.

Each time the "renew all" or "renew or return" buttons are click, the
renewal process is triggered. If the patron only has one renewal left,
and the button is multi-clicked, the librarian may receive a
"renewal failed" message even though the renewal did occur. In
addition, this can just unwanted multiple consecutive renewals
as well.

Test Plan:
1) Check out an item to a patron that can have 1 renewal
2) Click the "renew all" button multiple times, fast and furiously
3) Note the "renewal failed" messaged
4) Apply this patch
5) Repeat steps 1 and 2
6) Note the item is now renewed without the failure message

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt