and the same for ship_
authorivan <ivan>
Fri, 23 Jan 2004 03:01:22 +0000 (03:01 +0000)
committerivan <ivan>
Fri, 23 Jan 2004 03:01:22 +0000 (03:01 +0000)
httemplate/edit/cust_main.cgi

index bfe4a2d..857e769 100755 (executable)
@@ -291,8 +291,9 @@ END
   #false laziness with regular state
   $cust_main->ship_country( $countrydefault ) unless $cust_main->ship_country;
 
-  $cust_main->ship_state( $conf->config('statedefault') || 'CA' )
-    unless $cust_main->ship_state || $cust_main->ship_country ne 'US';
+  $cust_main->ship_state( $statedefault )
+    unless $cust_main->ship_state
+           || $cust_main->ship_country ne $countrydefault;
 
   my($ship_county_html, $ship_state_html, $ship_country_html) =
     FS::cust_main_county::regionselector( $cust_main->ship_county,