summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-02-20 18:45:55 -0800
committerIvan Kohler <ivan@freeside.biz>2017-02-20 18:45:55 -0800
commit312e0abaf208796c86fd25dc8519d68948808140 (patch)
treea3a838dca31459f5fa09e056e9de70598351df2c
parent76757a3112c37931defcdbbe952b5d8170f42802 (diff)
usability: customer tags with checkboxes instead of a select-multiple (fix advanced customer search)
-rwxr-xr-xhttemplate/search/cust_main.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/httemplate/search/cust_main.html b/httemplate/search/cust_main.html
index 1aa3390cb..b0ce31ae9 100755
--- a/httemplate/search/cust_main.html
+++ b/httemplate/search/cust_main.html
@@ -59,10 +59,17 @@ for my $param ( @scalars ) {
}
#lists
-for my $param (qw( classnum refnum tagnum pkg_classnum )) {
+for my $param (qw( classnum refnum pkg_classnum )) {
$search_hash{$param} = [ $cgi->param($param) ];
}
+#tags
+my $params = $cgi->Vars;
+$search_hash{'tagnum'} = [
+ map { /^tagnum(\d+)/ && $1 }
+ grep { /^tagnum(\d+)/ && $cgi->param($_) } keys %$params
+];
+
###
# parse dates
###