diff options
author | ivan <ivan> | 2006-12-27 02:37:17 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-12-27 02:37:17 +0000 |
commit | 3c8870ee619416f126a65c93d5ef7a2f2e24bc96 (patch) | |
tree | 728873036ac4ae84b649923605176a875588167e /httemplate/misc | |
parent | 14ee9d25605ce139bad4655987575508c06f7f7e (diff) |
Add a (magically appearing and disappearing) label on the county selector. confusing when labeled "state"
Diffstat (limited to 'httemplate/misc')
-rw-r--r-- | httemplate/misc/counties.cgi | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/httemplate/misc/counties.cgi b/httemplate/misc/counties.cgi index 940cba7dc..c022a27d9 100644 --- a/httemplate/misc/counties.cgi +++ b/httemplate/misc/counties.cgi @@ -1,27 +1,7 @@ [ <% join(', ', map { qq("$_") } @counties) %> ] <%init> -my $DEBUG = 0; - my( $state, $country ) = $cgi->param('arg'); - -warn "fetching counties for $state / $country \n" - if $DEBUG; - -my @counties = - sort - map { s/[\n\r]//g; $_; } - map { $_->county; } - qsearch( { - 'select' => 'DISTINCT county', - 'table' => 'cust_main_county', - 'hashref' => { 'state' => $state, - 'country' => $country, - }, - } ) -; - -warn "counties: ". join(', ', map { qq("$_") } @counties). "\n" - if $DEBUG; +my @counties = counties($state, $country); </%init> |