From: Ivan Kohler Date: Tue, 21 Feb 2017 02:45:54 +0000 (-0800) Subject: usability: customer tags with checkboxes instead of a select-multiple (fix advanced... X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=7eb4daaa7d76c7195d0bf357a99ccf4ee1962b8a;hp=992c6d61adaaf658a52d1bdcc87b6e1780663a64 usability: customer tags with checkboxes instead of a select-multiple (fix advanced customer search) --- 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 ###