diff options
author | ivan <ivan> | 2011-08-18 23:46:01 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-08-18 23:46:01 +0000 |
commit | 13ea717f7e605a77c9cd286deb69a41888970e3a (patch) | |
tree | ec90ed4a7a3b77e0419caf47887a74393756fc8d | |
parent | 15b6f65fcea9f284caab5e0ebc8aa16933f4b394 (diff) |
attempt fixing "multiple states" links, RT#13922
-rw-r--r-- | FS/FS/cust_pkg.pm | 13 | ||||
-rwxr-xr-x | httemplate/search/477partVI_census.html | 2 |
2 files changed, 6 insertions, 9 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 347c04bb1..c1a066d45 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -3018,16 +3018,13 @@ sub search { } @report_option; } - foreach my $any ( grep /^report_option_any/ keys %$params ) { + foreach my $any ( grep /^report_option_any/, keys %$params ) { my @report_option_any = (); - if ( exists($params->{$any}) ) { - if ( ref($params->{$any}) eq 'ARRAY' ) { - @report_option_any = @{ $params->{$any} }; - } elsif ( $params->{$any} =~ /^([,\d]*)$/ ) { - @report_option_any = split(',', $1); - } - + if ( ref($params->{$any}) eq 'ARRAY' ) { + @report_option_any = @{ $params->{$any} }; + } elsif ( $params->{$any} =~ /^([,\d]*)$/ ) { + @report_option_any = split(',', $1); } if (@report_option_any) { diff --git a/httemplate/search/477partVI_census.html b/httemplate/search/477partVI_census.html index 35de3491c..fc097ee50 100755 --- a/httemplate/search/477partVI_census.html +++ b/httemplate/search/477partVI_census.html @@ -172,7 +172,7 @@ my $html_foot = sub { ( &FS::Report::FCC_477::statenum2state($_) || 'None' ). '</TD>'. '<TD>'. - qq(<A HREF="${link}censustract2=$_$roa_r$row_c$row_t">). + qq(<A HREF="${link}censustract2=$_$roa_r$roa_c$roa_t">). $state_pkgcount{$_}. ' packages</A> in '. $state_hash{$_}. ' census tracts'. '</TD>'. |