From: Mark Wells Date: Mon, 25 Mar 2013 03:30:54 +0000 (-0700) Subject: fix editing of customers without service addresses, from #21327 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=3e453b1d4a41fb60812661df13bc0e23961ccb26;p=freeside.git fix editing of customers without service addresses, from #21327 --- diff --git a/httemplate/edit/cust_main/top_misc.html b/httemplate/edit/cust_main/top_misc.html index 9a9ad8831..4d2f24bac 100644 --- a/httemplate/edit/cust_main/top_misc.html +++ b/httemplate/edit/cust_main/top_misc.html @@ -15,8 +15,8 @@ function agent_changed(what) { var f = what.form; if ( ship_locked_agents[agentnum] ) { f['same'].checked = false; + samechanged(f['same']); // enable everything, then... f['same'].disabled = true; - samechanged(f['same']); for(var x in ship_locked_agents[agentnum]) { f['ship_'+x].value = ship_locked_agents[agentnum][x]; f['ship_'+x].disabled = true; @@ -25,14 +25,15 @@ function agent_changed(what) { f['ship_address2'].disabled = false; f['ship_address2'].style.backgroundColor = '#ffffff'; } else { - for(var i=0; i