diff options
author | ivan <ivan> | 2001-10-30 15:41:00 +0000 |
---|---|---|
committer | ivan <ivan> | 2001-10-30 15:41:00 +0000 |
commit | ef2e9712fbb5b4b1c5a681530c202498204220d8 (patch) | |
tree | bc46419ceac87d9dfd51c4bd3ecbaa43d6197ce7 /httemplate | |
parent | 14655eb7b88692104732988ee9aab14a855ff752 (diff) |
precedence oops
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index cc692dd88..0a10c7ce1 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -1,5 +1,5 @@ <% -#<!-- $Id: cust_main.cgi,v 1.10 2001-10-30 15:39:27 ivan Exp $ --> +#<!-- $Id: cust_main.cgi,v 1.11 2001-10-30 15:41:00 ivan Exp $ --> use vars qw( $cgi $custnum $action $cust_main $p1 @agents $agentnum $last $first $ss $company $address1 $address2 $city $zip @@ -183,10 +183,10 @@ $cust_main->country( $countrydefault ) unless $cust_main->country; $cust_main->state( $conf->config('statedefault') || 'CA' ) unless $cust_main->state || $cust_main->country ne 'US'; foreach ( sort { - $a->country eq $countrydefault <=> $b->country eq $countrydefault - or $a->country cmp $b->country - or $a->state cmp $b->state - or $a->county cmp $b->county + ( $a->country eq $countrydefault ) <=> ( $b->country eq $countrydefault ) + or $a->country cmp $b->country + or $a->state cmp $b->state + or $a->county cmp $b->county } qsearch('cust_main_county',{}) ) { print "<OPTION"; print " SELECTED" if ( $cust_main->state eq $_->state |