From: ivan Date: Wed, 17 Aug 2011 21:07:55 +0000 (+0000) Subject: fix 477 censustract links, RT#13922 X-Git-Tag: freeside_2_3_1~326 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=c0e1b949ca42baf12bc501be41401608f10853e6 fix 477 censustract links, RT#13922 --- 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]