X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_pkg.cgi;h=297edee90b6622c8960e9d7086cb1640f7e3df3a;hb=ea3ce8d7f076e7fecff4be7ae63bc413adb0adf5;hp=f9cb9f82f535f8c5fea5848f9583419b2a2e7292;hpb=613464e6e7b634586bca9fabac145d2850b0f0f7;p=freeside.git
diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi
index f9cb9f82f..297edee90 100755
--- a/httemplate/search/cust_pkg.cgi
+++ b/httemplate/search/cust_pkg.cgi
@@ -151,7 +151,7 @@ for (qw( agentnum custnum magic status custom cust_fields pkgbatch )) {
#arrays
for my $param (qw( pkgpart classnum )) {
- $search_hash{$param} = [ $cgi->param($param) ];
+ $search_hash{$param} = [ $cgi->param($param) ]
if grep { $_ eq $param } $cgi->param;
}
@@ -161,9 +161,12 @@ for my $param (qw( censustract censustract2 )) {
if grep { $_ eq $param } $cgi->param;
}
-my @report_option = $cgi->param('report_option')
- if $cgi->param('report_option');
-$search_hash{report_option} = join(',', @report_option) if @report_option;
+my $report_option = $cgi->param('report_option');
+$search_hash{report_option} = $report_option if $report_option;
+
+for my $param (grep /^report_option_any/, $cgi->param) {
+ $search_hash{$param} = $cgi->param($param);
+}
###
# parse dates
@@ -249,7 +252,7 @@ my $html_init = sub {
$text .= include( '/elements/email-link.html',
'search_hash' => \%search_hash,
'table' => 'cust_pkg',
- );
+ ). '
';
}
return $text;
};