X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fstates.cgi;h=63c494d156dea09d0617b5576b8d737be30261c7;hp=cff2c9774aa512525a216e4c7acb7648643e64c5;hb=929f432c766bbe3bdeed5b80818a12ddf6ec6339;hpb=36693c42cbaca86f6957d5ed6794624810018bb3 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) %> ]