allow approval of pending address, even if it does not replace any other address
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 10 Feb 2009 20:51:55 +0000 (20:51 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 10 Feb 2009 20:51:55 +0000 (20:51 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12142 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/ue_config.js

index ca8909b..5761b79 100644 (file)
@@ -646,6 +646,7 @@ function uEditApproveAddr( tbody, row, address ) {
                 // 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 @@ function uEditBuildAddrFields(patron, address) {
        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 ); }