From 868bd639a0f8fd05479311129e7713bed14f97b7 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 9 Aug 2013 13:43:21 -0400 Subject: [PATCH] Bug 9943 - Pay fines page "Pay selected" button give invalid amount when nothing is selected Content-Type: text/plain; charset="utf-8" If you select no fines but click the "pay selected" button the resulting screen offers to let you pay against all fines, which is confusing. To simplify things this patch disables the "pay selected" button if no lines are selected. To test, apply the patch and find a patron with outstanding fines. From the "pay fines" page (members/pay.pl) try selecting and deselecting checkboxes and using the "select all" and "clear all" links. When no item is selected the "Pay selected" button should become disabled. Confirm that the form submits correctly when one or more fines is selected. --- .../intranet-tmpl/prog/en/modules/members/pay.tt | 31 ++++++++++++++++---- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt index 9b50924..91f1609 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt @@ -4,6 +4,15 @@ @@ -71,7 +92,7 @@ [% IF ( line.amountoutstanding > 0 ) %] - + [% END %] @@ -111,9 +132,9 @@
- + - + Cancel
-- 1.7.9.5