summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhttemplate/search/477partVI_census.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/httemplate/search/477partVI_census.html b/httemplate/search/477partVI_census.html
index 9134bacca..d28caeb47 100755
--- 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';
-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]