usability: customer tags with checkboxes instead of a select-multiple (fix advanced...
authorIvan Kohler <ivan@freeside.biz>
Tue, 21 Feb 2017 02:45:54 +0000 (18:45 -0800)
committerIvan Kohler <ivan@freeside.biz>
Tue, 21 Feb 2017 02:45:54 +0000 (18:45 -0800)
httemplate/search/cust_main.html

index 1aa3390..b0ce31a 100755 (executable)
@@ -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
 ###