]> git.koha-community.org Git - koha.git/commit
Bug 8054 - double clicking can cause duplicate payments/fines
authorLiz Rea <liz@catalyst.net.nz>
Thu, 27 Dec 2012 03:10:26 +0000 (16:10 +1300)
committerChris Cormack <chris@bigballofwax.co.nz>
Sat, 16 Mar 2013 20:32:37 +0000 (09:32 +1300)
commitdff0971f1c6f55d18c2c20f46bac5cb8aed1966f
tree38e3f50df72cc70b74d12c245245aeca6e5f96a6
parent297d3913450f4de897f740168f508a0d957fc359
Bug 8054 - double clicking can cause duplicate payments/fines

Uses preventDoubleForSubmit() to prevent double form submissions in the fines module.

To test:

Create a manual invoice/fine
Create some manual fines, click save like mad - you should get only one fine (without, you will get several if you click madly enough)

Click Pay fines
Pay some fines, clicking save like mad on each. You should only get one payment. (without, you will get several payments)

Create a manual credit
Create a credit, click save like mad. You should only get one credit. (without you will get several if you click madly enough)

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt