From: ivan Date: Thu, 18 Aug 2011 23:16:46 +0000 (+0000) Subject: fix 477 package links report_option arg, RT#13922 X-Git-Tag: freeside_2_1_3~24 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=6a4c1c940598c493847c2108eba6f9fbf3b6c5e5 fix 477 package links report_option arg, RT#13922 --- diff --git a/httemplate/search/477partVI_census.html b/httemplate/search/477partVI_census.html index fe224edba..404790112 100755 --- a/httemplate/search/477partVI_census.html +++ b/httemplate/search/477partVI_census.html @@ -147,6 +147,7 @@ my $link_suffix = sub { my $row = shift; my @ro = grep $_, @row_option[$row->upload - 1], @column_option[$row->download - 1], + @technology_option[$row->technology_code - 1], ; $result .= 'report_option='. join(',',@ro) if @ro; $result; diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi index 1c34d3b8a..c4a3e8487 100755 --- a/httemplate/search/cust_pkg.cgi +++ b/httemplate/search/cust_pkg.cgi @@ -184,9 +184,8 @@ for my $param (qw( censustract censustract2 )) { if grep { $_ eq $param } $cgi->param; } -my @report_option = $cgi->param('report_option') - if $cgi->param('report_option'); -$search_hash{report_option} = join(',', @report_option) if @report_option; +my $report_option = $cgi->param('report_option'); +$search_hash{report_option} = $report_option if $report_option; ### # parse dates @@ -289,7 +288,7 @@ my $html_init = sub { $text .= include( '/elements/email-link.html', 'search_hash' => \%search_hash, 'table' => 'cust_pkg', - ); + ). '

'; } return $text; };