have the UI use full country names, and state names outside the US...
[freeside.git] / httemplate / misc / states.cgi
index cff2c97..63c494d 100644 (file)
@@ -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) %> ]