projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2017 holidays, RT#18117
[freeside.git]
/
httemplate
/
misc
/
counties.cgi
diff --git
a/httemplate/misc/counties.cgi
b/httemplate/misc/counties.cgi
index
c9eb985
..
c022a27
100644
(file)
--- a/
httemplate/misc/counties.cgi
+++ b/
httemplate/misc/counties.cgi
@@
-1,18
+1,7
@@
-%
-%
-% my( $state, $country ) = $cgi->param('arg');
-%
-% my @counties =
-% sort
-% map { s/[\n\r]//g; $_; }
-% map { $_->county; }
-% qsearch( 'cust_main_county',
-% { 'state' => $state,
-% 'country' => $country,
-% },
-% )
-% ;
-%
-%
-%
[ <% join(', ', map { qq("$_") } @counties) %> ]
[ <% join(', ', map { qq("$_") } @counties) %> ]
+<%init>
+
+my( $state, $country ) = $cgi->param('arg');
+my @counties = counties($state, $country);
+
+</%init>