diff options
author | ivan <ivan> | 2011-08-18 00:33:40 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-08-18 00:33:40 +0000 |
commit | 357524c1a93e1a8fbba1cce6f282bcf2fa747459 (patch) | |
tree | 14754b5decc94afab3321520f622aa109698f60a /httemplate | |
parent | 67cc29cf8d4ce046599a857437b6b3c105820e08 (diff) |
allow multiple classnums in package search, RT#13922
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/search/cust_pkg.cgi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi index aec04880f..9ec0c8425 100755 --- a/httemplate/search/cust_pkg.cgi +++ b/httemplate/search/cust_pkg.cgi @@ -168,11 +168,14 @@ my %search_hash = (); $search_hash{'query'} = $cgi->keywords; #scalars -for (qw( agentnum custnum magic status classnum custom cust_fields pkgbatch )) { +for (qw( agentnum custnum magic status custom cust_fields pkgbatch )) { $search_hash{$_} = $cgi->param($_) if $cgi->param($_); } -$search_hash{'pkgpart'} = [ $cgi->param('pkgpart') ]; +#arrays +for (qw( pkgpart classnum )) { + $search_hash{$_} = [ $cgi->param($_) ]; +} for my $param ( qw(censustract) ) { $search_hash{$param} = $cgi->param($param) || '' |