[freeside-commits] branch FREESIDE_4_BRANCH updated. 312e0abaf208796c86fd25dc8519d68948808140
Ivan
ivan at 420.am
Mon Feb 20 18:45:56 PST 2017
The branch, FREESIDE_4_BRANCH has been updated
via 312e0abaf208796c86fd25dc8519d68948808140 (commit)
from 76757a3112c37931defcdbbe952b5d8170f42802 (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 312e0abaf208796c86fd25dc8519d68948808140
Author: Ivan Kohler <ivan at freeside.biz>
Date: Mon Feb 20 18:45:55 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