diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-02-20 18:45:54 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-02-20 18:45:54 -0800 |
commit | 7eb4daaa7d76c7195d0bf357a99ccf4ee1962b8a (patch) | |
tree | 0fe0e59312ca8419708844dc74cd54c5c4b9222c | |
parent | 992c6d61adaaf658a52d1bdcc87b6e1780663a64 (diff) |
usability: customer tags with checkboxes instead of a select-multiple (fix advanced customer search)
-rwxr-xr-x | httemplate/search/cust_main.html | 9 |
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 ### |