diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2016-08-25 15:06:47 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2016-08-25 15:06:47 -0700 |
| commit | 127c3e6c4da293af18ed05e108a110213be682fc (patch) | |
| tree | 354fc9e91be4a90afbfa66b81a8d6e0cd8e9fc9a /httemplate/edit/process/cust_main.cgi | |
| parent | 6bdc9c23cddd8d8a48f993afb58616972f2e1ac1 (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 ); |
