From 485febda2dd7b70a7f5024b80918488376f8f6a3 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 18 Aug 2011 23:29:22 +0000 Subject: fix 477 package links, RT#13922 --- httemplate/search/477partVI_census.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'httemplate') diff --git a/httemplate/search/477partVI_census.html b/httemplate/search/477partVI_census.html index 9256b86b3..b6043539a 100755 --- a/httemplate/search/477partVI_census.html +++ b/httemplate/search/477partVI_census.html @@ -147,7 +147,7 @@ my $link_suffix = sub { my $row = shift; my @ro = grep $_, @row_option[$row->upload - 1], @column_option[$row->download - 2], - @technology_option[$row->technology_code], + @technology_option[$row->technology_code - 1], ; $result .= 'report_option='. join(',',@ro) if @ro; $result; @@ -155,6 +155,10 @@ my $link_suffix = sub { my $row = shift; my $html_foot = sub { if (scalar(keys %state_hash) > 1) { + + my $roa = join(',', grep $_, @technology_option); + $roa = ";report_option_any=$roa" if $roa; + '
WARNING: multiple states found
'. ''. #nicer formatting someday join('', map { ''. @@ -162,7 +166,7 @@ my $html_foot = sub { ( &FS::Report::FCC_477::statenum2state($_) || 'None' ). ''. ''. -- cgit v1.2.1
'. - qq(). + qq(). $state_pkgcount{$_}. ' packages in '. $state_hash{$_}. ' census tracts'. '