"same as billing address" box would uncheck itself on errors (only looked
authorivan <ivan>
Thu, 5 Sep 2002 17:01:36 +0000 (17:01 +0000)
committerivan <ivan>
Thu, 5 Sep 2002 17:01:36 +0000 (17:01 +0000)
at previous ship_last, not CGI checkbox value too)  Closes: Bug#448

httemplate/edit/cust_main.cgi

index 831b2ab..3a5df08 100755 (executable)
@@ -231,7 +231,7 @@ END
 
   print '<BR>Service address ',
         '(<INPUT TYPE="checkbox" NAME="same" VALUE="Y" onClick="samechanged(this)"';
-  unless ( $cust_main->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