[open-ils-commits] [GIT] Evergreen ILS branch rel_1_6_1 updated. 71edbe47f0b16a08a2df25aa422da73a3d436f76

Evergreen Git git at git.evergreen-ils.org
Wed Jun 15 09:28:24 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_1_6_1 has been updated
       via  71edbe47f0b16a08a2df25aa422da73a3d436f76 (commit)
      from  3f6245cf38f49fc597691390c43250f71e45ec86 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 71edbe47f0b16a08a2df25aa422da73a3d436f76
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Wed Jun 15 03:03:23 2011 -0400

    lp797321: Disable the Apply Payment button during payment processing to mitigate chance of duplicate payments.
    
    I can't actually reproduce the creation of duplicate payments locally with
    trunk/2.x, but there are reports of it, and this doesn't seem to hurt.  Not
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

diff --git a/Open-ILS/xul/staff_client/server/patron/bills.js b/Open-ILS/xul/staff_client/server/patron/bills.js
index 2747797..4f90db3 100644
--- a/Open-ILS/xul/staff_client/server/patron/bills.js
+++ b/Open-ILS/xul/staff_client/server/patron/bills.js
@@ -250,8 +250,10 @@ patron.bills.prototype = {
                             'cmd_bill_apply_payment' : [
                                 ['command'],
                                 function() {
-                                    try { 
+                                    try {
+                                        obj.controller.view.cmd_bill_apply_payment.setAttribute('disabled','true');
                                         obj.apply_payment(); 
+                                        obj.controller.view.cmd_bill_apply_payment.setAttribute('disabled','false');
                                     } catch(E) { 
                                         obj.error.standard_unexpected_error_alert('bills -> cmd_bill_apply_payment',E);    
                                     }

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/xul/staff_client/server/patron/bills.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list