X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fcounties.cgi;h=c022a27d98b843f00973df980525d6593231ca6d;hp=80ae616c96fff31ed8c59281afba26febfea83dc;hb=2eea268a59cf357853e31ff8d5db6033e4bdc8ea;hpb=673b9a458d9138523026963df6fa3b4683e09bae diff --git a/httemplate/misc/counties.cgi b/httemplate/misc/counties.cgi index 80ae616c9..c022a27d9 100644 --- a/httemplate/misc/counties.cgi +++ b/httemplate/misc/counties.cgi @@ -1,17 +1,7 @@ -<% +[ <% join(', ', map { qq("$_") } @counties) %> ] +<%init> - my( $state, $country ) = $cgi->param('arg'); +my( $state, $country ) = $cgi->param('arg'); +my @counties = counties($state, $country); - my @counties = - sort - map { s/[\n\r]//g; $_; } - map { $_->county; } - qsearch( 'cust_main_county', - { 'state' => $state, - 'country' => $country, - }, - ) - ; - - -%>[ <%= join(', ', map { qq("$_") } @counties) %> ] +