diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-08-25 15:06:45 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-08-25 15:06:45 -0700 |
commit | 64aec88c35418b8c630811cdf5afb19b2a1c4299 (patch) | |
tree | 2ebcc93b3ab5d0ab4cd3a9f583d7d727e07f3d07 /httemplate/edit/process/cust_main.cgi | |
parent | 3fc0a546caf38b444b63744726c5080ce5d9bbbb (diff) |
usability: customer tags with checkboxes instead of a select-multiple
Diffstat (limited to 'httemplate/edit/process/cust_main.cgi')
-rwxr-xr-x | httemplate/edit/process/cust_main.cgi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi index 74f8f2382..2cb1648f7 100755 --- a/httemplate/edit/process/cust_main.cgi +++ b/httemplate/edit/process/cust_main.cgi @@ -109,7 +109,12 @@ if ( $cgi->param('no_credit_limit') ) { $new->setfield('credit_limit', ''); } -$new->tagnum( [ $cgi->param('tagnum') ] ); +#$new->tagnum( [ $cgi->param('tagnum') ] ); +my $params = $cgi->Vars; +$new->tagnum( [ + map { /^tagnum(\d+)/ && $1 } + grep { /^tagnum(\d+)/ && $cgi->param($_) } keys %$params +] ); $error ||= $new->set_national_id_from_cgi( $cgi ); |