From 929f432c766bbe3bdeed5b80818a12ddf6ec6339 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 3 Apr 2006 09:46:57 +0000 Subject: have the UI use full country names, and state names outside the US... --- httemplate/misc/states.cgi | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'httemplate/misc') 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) %> ] -- cgit v1.2.1