From: erickson Date: Tue, 23 Dec 2008 20:09:06 +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=02ff3e0df838e747c456f961ca10a23aecf327f3;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/trunk@11672 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 c39952a612..b4a6b017b8 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue_config.js +++ b/Open-ILS/xul/staff_client/server/patron/ue_config.js @@ -552,6 +552,8 @@ function uEditDeleteAddr( tbody, row, address, detach ) { } ) ); + if(!patron.addresses()) + patron.addresses([]); /* XXX */ for( var f in dataFields ) { @@ -573,6 +575,8 @@ function uEditDeleteAddr( tbody, row, address, detach ) { } ) ); + if(!patron.addresses()) + patron.addresses([]); } else { address.isdeleted(1);