summaryrefslogtreecommitdiff
path: root/httemplate/search
diff options
context:
space:
mode:
authorjeff <jeff>2006-10-25 04:44:48 +0000
committerjeff <jeff>2006-10-25 04:44:48 +0000
commit0c2f4bccc3810426d4b9e31dca645711c32f0b63 (patch)
tree873d5be13dce5d84a55463cac0b088fe65d5823f /httemplate/search
parent40b1272a7b98f8a3d2f5252c2997c77de4526ef1 (diff)
select multiple pkgparts on advanced package report
Diffstat (limited to 'httemplate/search')
-rwxr-xr-xhttemplate/search/cust_pkg.cgi8
-rwxr-xr-xhttemplate/search/report_cust_pkg.html2
2 files changed, 9 insertions, 1 deletions
diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi
index 8dbc600e9..7a651c4bf 100755
--- a/httemplate/search/cust_pkg.cgi
+++ b/httemplate/search/cust_pkg.cgi
@@ -80,6 +80,14 @@
%#eslaf
%
%###
+%# parse part_pkg
+%###
+%
+%my $pkgpart = join (' OR pkgpart=',
+% grep {$_} map { /^(\d+)$/; } ($cgi->param('pkgpart')));
+%push @where, '(pkgpart=' . $pkgpart . ')' if $pkgpart;
+%
+%###
%# parse magic, legacy, etc.
%###
%
diff --git a/httemplate/search/report_cust_pkg.html b/httemplate/search/report_cust_pkg.html
index 8fabf107a..2193cac8b 100755
--- a/httemplate/search/report_cust_pkg.html
+++ b/httemplate/search/report_cust_pkg.html
@@ -18,7 +18,7 @@
'empty_label' => '(empty class)',
)
%>
-% #include( '/elements/tr-selectmultiple-part_pkg.html' )
+ <% include( '/elements/tr-selectmultiple-part_pkg.html' ) %>
<TR>
<TD ALIGN="right" VALIGN="center">Next bill date</TD>