From 326687b804a56bce44f8fe85effbdc7445da5cf5 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 10 Feb 2009 20:51:55 +0000 Subject: [PATCH] allow approval of pending address, even if it does not replace any other address 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/patron/ue_config.js b/Open-ILS/xul/staff_client/server/patron/ue_config.js index ca8909b5f3..5761b7991d 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue_config.js +++ b/Open-ILS/xul/staff_client/server/patron/ue_config.js @@ -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 ); } -- 2.11.0