[freeside-commits] freeside/httemplate/misc counties.cgi,1.3,1.4
Ivan,,,
ivan at wavetail.420.am
Tue Dec 26 18:37:19 PST 2006
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail:/tmp/cvs-serv4360/httemplate/misc
Modified Files:
counties.cgi
Log Message:
Add a (magically appearing and disappearing) label on the county selector. confusing when labeled "state"
Index: counties.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/counties.cgi,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- counties.cgi 27 Dec 2006 01:07:28 -0000 1.3
+++ counties.cgi 27 Dec 2006 02:37:17 -0000 1.4
@@ -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>
More information about the freeside-commits
mailing list