From 7eb4daaa7d76c7195d0bf357a99ccf4ee1962b8a Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 20 Feb 2017 18:45:54 -0800 Subject: [PATCH] usability: customer tags with checkboxes instead of a select-multiple (fix advanced customer search) --- httemplate/search/cust_main.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 ### -- 2.11.0