[open-ils-commits] r12142 - trunk/Open-ILS/xul/staff_client/server/patron (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Feb 10 15:51:59 EST 2009


Author: erickson
Date: 2009-02-10 15:51:55 -0500 (Tue, 10 Feb 2009)
New Revision: 12142

Modified:
   trunk/Open-ILS/xul/staff_client/server/patron/ue_config.js
Log:
allow approval of pending address, even if it does not replace any other address

Modified: trunk/Open-ILS/xul/staff_client/server/patron/ue_config.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/ue_config.js	2009-02-10 20:49:11 UTC (rev 12141)
+++ trunk/Open-ILS/xul/staff_client/server/patron/ue_config.js	2009-02-10 20:51:55 UTC (rev 12142)
@@ -646,6 +646,7 @@
                 // update the ID on the new address
                 address.id(oldId);
                 address.replaces(null);
+                address.pending('f');
                 removeChildren($('ue_address_tbody'));
 	            uEditBuildAddrs(patron);
             }
@@ -697,7 +698,7 @@
 	uEditCheckSharedAddr(patron, address, tbody, row);
     
     // see if this is a pending address
-    if( address.replaces() != null ) {
+    if( isTrue(address.pending()) ) {
         var button = $n(row, 'ue_addr_approve');
         unHideMe(button);
         button.onclick = function() { uEditApproveAddr( tbody, row, address ); }



More information about the open-ils-commits mailing list