diff options
| author | ivan <ivan> | 2011-08-18 00:33:37 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2011-08-18 00:33:37 +0000 |
| commit | 6c135249a792decae9f8f98eda5ee4077efcdb34 (patch) | |
| tree | 19e373bf7179e5422d49b5382ae6845299d00bf0 /httemplate | |
| parent | a6fcaaaeb031cfc5d4a32e75356208f1df965cb2 (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 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) || '' |
