diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-09-25 14:49:38 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-09-25 14:49:38 -0700 |
commit | fe58901b811f0ab26e8f93a9563fb93bc98e4c19 (patch) | |
tree | 035648bdef5c41f0e05929edc543692837fec40a /httemplate/edit/cust_main.cgi | |
parent | 26484e261d7a6bd833d041b417b60e63db19edf7 (diff) |
scalar cgi param
Diffstat (limited to 'httemplate/edit/cust_main.cgi')
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index 3ba1e859b..e58441d24 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -237,7 +237,8 @@ if ( $cgi->param('error') ) { unless $curuser->access_right($custnum ? 'Edit customer' : 'New customer'); @invoicing_list = split( /\s*,\s*/, $cgi->param('invoicing_list') ); - $cust_main->setfield('paid' => $cgi->param('paid')) if $cgi->param('paid'); + $cust_main->setfield( 'paid' => scalar($cgi->param('paid')) ) + if $cgi->param('paid'); $ss = $cust_main->ss; # don't mask an entered value on errors $stateid = $cust_main->stateid; # don't mask an entered value on errors |