diff options
author | ivan <ivan> | 2011-08-18 00:33:33 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-08-18 00:33:33 +0000 |
commit | 11b383e074fe5f30d78ac842181c413160b13056 (patch) | |
tree | 98f82cc408565228a8653fb872758acdfad25554 /httemplate/search/cust_pkg.cgi | |
parent | 244fa344000bf21ee12e9edd0a88bde64769b879 (diff) |
allow multiple classnums in package search, RT#13922
Diffstat (limited to 'httemplate/search/cust_pkg.cgi')
-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 8187f7735..d48ba1916 100755 --- a/httemplate/search/cust_pkg.cgi +++ b/httemplate/search/cust_pkg.cgi @@ -145,11 +145,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) || '' |