diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-02-20 18:45:55 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-02-20 18:45:55 -0800 |
commit | 312e0abaf208796c86fd25dc8519d68948808140 (patch) | |
tree | a3a838dca31459f5fa09e056e9de70598351df2c | |
parent | 76757a3112c37931defcdbbe952b5d8170f42802 (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 ### |