diff options
author | ivan <ivan> | 2001-05-23 13:47:07 +0000 |
---|---|---|
committer | ivan <ivan> | 2001-05-23 13:47:07 +0000 |
commit | 8fcfb44709aa2e4114aac9f4efae15abfdbe26a6 (patch) | |
tree | b559edaab4ffd398557641ea5efef816beadcf32 /htdocs | |
parent | 7d5a4fc43bd26705c3f4613b05bea6141864c9a9 (diff) |
bugfix for defaultcountry
Diffstat (limited to 'htdocs')
-rwxr-xr-x | htdocs/edit/cust_main.cgi | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/htdocs/edit/cust_main.cgi b/htdocs/edit/cust_main.cgi index b3d9f0d80..9c61c654e 100755 --- a/htdocs/edit/cust_main.cgi +++ b/htdocs/edit/cust_main.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: cust_main.cgi,v 1.28 2000-12-26 23:51:40 ivan Exp $ +# $Id: cust_main.cgi,v 1.29 2001-05-23 13:47:07 ivan Exp $ # # Usage: cust_main.cgi custnum # http://server.name/path/cust_main.cgi?custnum @@ -38,7 +38,10 @@ # fixed one missed day->daytime ivan@sisd.com 98-jul-13 # # $Log: cust_main.cgi,v $ -# Revision 1.28 2000-12-26 23:51:40 ivan +# Revision 1.29 2001-05-23 13:47:07 ivan +# bugfix for defaultcountry +# +# Revision 1.28 2000/12/26 23:51:40 ivan # statedefault & referraldefault config files # # Revision 1.27 2000/12/03 13:45:15 ivan @@ -335,7 +338,7 @@ END $cust_main->country( $conf->config('countrydefault') || 'US' ) unless $cust_main->country; $cust_main->state( $conf->config('statedefault') || 'CA' ) - unless $cust_main->state; + unless $cust_main->state || $cust_main->country ne 'US'; foreach ( qsearch('cust_main_county',{}) ) { print "<OPTION"; print " SELECTED" if ( $cust_main->state eq $_->state |