diff options
| author | ivan <ivan> | 2011-08-18 21:27:52 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2011-08-18 21:27:52 +0000 |
| commit | 613464e6e7b634586bca9fabac145d2850b0f0f7 (patch) | |
| tree | 559aeaf3702f4d88a9173237e6d03e0d5eae4a50 /httemplate/search/cust_pkg.cgi | |
| parent | ab71884fcb626cfab8c62fd6d9db485e36495e14 (diff) | |
fix 477 reporting w/multiple classnums, RT#13922
Diffstat (limited to 'httemplate/search/cust_pkg.cgi')
| -rwxr-xr-x | httemplate/search/cust_pkg.cgi | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi index 09b52d76b..f9cb9f82f 100755 --- a/httemplate/search/cust_pkg.cgi +++ b/httemplate/search/cust_pkg.cgi @@ -150,14 +150,15 @@ for (qw( agentnum custnum magic status custom cust_fields pkgbatch )) { } #arrays -for (qw( pkgpart classnum )) { - $search_hash{$_} = [ $cgi->param($_) ]; +for my $param (qw( pkgpart classnum )) { + $search_hash{$param} = [ $cgi->param($param) ]; + if grep { $_ eq $param } $cgi->param; } #scalars that need to be passed if empty -for my $param (qw(censustract censustract2 )) { +for my $param (qw( censustract censustract2 )) { $search_hash{$param} = $cgi->param($param) || '' - if ( grep { /$param/ } $cgi->param ); + if grep { $_ eq $param } $cgi->param; } my @report_option = $cgi->param('report_option') |
