From 94b857eb505813ba0a8b45be6d2bd94482878209 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 18 Aug 2011 23:16:45 +0000 Subject: [PATCH] fix 477 package links report_option arg, RT#13922 --- httemplate/search/477partVI_census.html | 1 + httemplate/search/cust_pkg.cgi | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) 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 f0408e489..b061b178f 100755 --- a/httemplate/search/cust_pkg.cgi +++ b/httemplate/search/cust_pkg.cgi @@ -161,9 +161,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 @@ -249,7 +248,7 @@ my $html_init = sub { $text .= include( '/elements/email-link.html', 'search_hash' => \%search_hash, 'table' => 'cust_pkg', - ); + ). '

'; } return $text; }; -- 2.11.0