From: erickson Date: Tue, 23 Dec 2008 20:08:39 +0000 (+0000) Subject: if we remove the only address, make sure addresses is still an array X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ce1125c071ef075c71315bfb5406934b27b3a943;p=Evergreen.git if we remove the only address, make sure addresses is still an array git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@11670 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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 172124a6ac..c8ac97cc43 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue_config.js +++ b/Open-ILS/xul/staff_client/server/patron/ue_config.js @@ -523,6 +523,8 @@ function uEditDeleteAddr( tbody, row, address, detach ) { } ) ); + if(!patron.addresses()) + patron.addresses([]); /* XXX */ for( var f in dataFields ) { @@ -544,6 +546,8 @@ function uEditDeleteAddr( tbody, row, address, detach ) { } ) ); + if(!patron.addresses()) + patron.addresses([]); } else { address.isdeleted(1);