[freeside-commits] branch master updated. 7eb4daaa7d76c7195d0bf357a99ccf4ee1962b8a

Ivan ivan at 420.am
Mon Feb 20 18:45:55 PST 2017


The branch, master has been updated
       via  7eb4daaa7d76c7195d0bf357a99ccf4ee1962b8a (commit)
      from  992c6d61adaaf658a52d1bdcc87b6e1780663a64 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7eb4daaa7d76c7195d0bf357a99ccf4ee1962b8a
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Feb 20 18:45:54 2017 -0800

    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 1aa3390..b0ce31a 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
 ###

-----------------------------------------------------------------------

Summary of changes:
 httemplate/search/cust_main.html |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list