diff options
author | ivan <ivan> | 2006-04-03 09:46:57 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-04-03 09:46:57 +0000 |
commit | 929f432c766bbe3bdeed5b80818a12ddf6ec6339 (patch) | |
tree | 8129b16aa927db1e4182fcaaeea0c5ee9f050fd4 /httemplate/misc/states.cgi | |
parent | 36693c42cbaca86f6957d5ed6794624810018bb3 (diff) |
have the UI use full country names, and state names outside the US...
Diffstat (limited to 'httemplate/misc/states.cgi')
-rw-r--r-- | httemplate/misc/states.cgi | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/httemplate/misc/states.cgi b/httemplate/misc/states.cgi index cff2c9774..63c494d15 100644 --- a/httemplate/misc/states.cgi +++ b/httemplate/misc/states.cgi @@ -1,16 +1,6 @@ <% my $country = $cgi->param('arg'); + my @output = states_hash($country); - my @states = - sort - map { s/[\n\r]//g; $_; } - map { $_->state; } - qsearch( 'cust_main_county', - { 'country' => $country }, - 'DISTINCT ON ( state ) *', - ) - ; - - -%>[ <%= join(', ', map { qq("$_") } @states) %> ] +%>[ <%= join(', ', map { qq("$_") } @output) %> ] |