projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
747a196
)
fix 477 censustract links, RT#13922
author
ivan
<ivan>
Wed, 17 Aug 2011 21:07:55 +0000
(21:07 +0000)
committer
ivan
<ivan>
Wed, 17 Aug 2011 21:07:55 +0000
(21:07 +0000)
httemplate/search/477partVI_census.html
patch
|
blob
|
history
diff --git
a/httemplate/search/477partVI_census.html
b/httemplate/search/477partVI_census.html
index
9134bac
..
d28caeb
100755
(executable)
--- a/
httemplate/search/477partVI_census.html
+++ b/
httemplate/search/477partVI_census.html
@@
-130,8
+130,16
@@
my $count_query = 'SELECT count(*) FROM ( ('.
@sql_query
). ') ) AS foo';
@sql_query
). ') ) AS foo';
-my $link = 'cust_pkg.cgi?'.
- join(';', map{ "$_=". $search_hash{$_} } keys %search_hash). ';';
+my $link = 'cust_pkg.cgi?'. join(';',
+ map { my $key = $_;
+ my @values = ref($search_hash{$_})
+ ? @{ $search_hash{$_} }
+ : $search_hash{$_}
+ map { "$key=$_" } @values
+ }
+ keys %search_hash
+ ). ';';
+
my $link_suffix = sub { my $row = shift;
my $result = 'censustract='. $row->censustract. ';';
$result .= 'report_option='. @row_option[$row->upload - 1]
my $link_suffix = sub { my $row = shift;
my $result = 'censustract='. $row->censustract. ';';
$result .= 'report_option='. @row_option[$row->upload - 1]