diff options
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) %> ] |