From: ivan Date: Thu, 5 Sep 2002 17:01:36 +0000 (+0000) Subject: "same as billing address" box would uncheck itself on errors (only looked X-Git-Tag: freeside_1_4_1beta1~8 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=afb81dcb0fd47759bb5234d7f5989dc8df0aa502 "same as billing address" box would uncheck itself on errors (only looked at previous ship_last, not CGI checkbox value too) Closes: Bug#448 --- diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index 831b2ab97..3a5df086f 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -231,7 +231,7 @@ END print '
Service address ', '(ship_last ) { + unless ( $cust_main->ship_last && $cgi->param('same') ne 'Y' ) { print ' CHECKED'; foreach ( qw( last first company address1 address2 city county state zip country