From: Ivan Kohler Date: Sun, 25 Sep 2016 21:42:44 +0000 (-0700) Subject: scalar cgi param X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=26484e261d7a6bd833d041b417b60e63db19edf7 scalar cgi param --- diff --git a/httemplate/browse/part_pkg_taxproduct/billsoft.html b/httemplate/browse/part_pkg_taxproduct/billsoft.html index c58ac30fa..adb5c3ca1 100755 --- a/httemplate/browse/part_pkg_taxproduct/billsoft.html +++ b/httemplate/browse/part_pkg_taxproduct/billsoft.html @@ -67,7 +67,7 @@ $service_labels{''} = $trans_labels{''} = ''; &> <& /elements/hidden.html, field => 'id', - curr_value => $cgi->param('id'), + curr_value => scalar($cgi->param('id')), &> <%init> diff --git a/httemplate/browse/part_pkg_taxproduct/suretax.html b/httemplate/browse/part_pkg_taxproduct/suretax.html index 8f237f360..178062c4a 100755 --- a/httemplate/browse/part_pkg_taxproduct/suretax.html +++ b/httemplate/browse/part_pkg_taxproduct/suretax.html @@ -124,7 +124,7 @@ foreach my $row ( qsearch({ &> <& /elements/hidden.html, field => 'id', - curr_value => $cgi->param('id'), + curr_value => scalar($cgi->param('id')), &> <%init> diff --git a/httemplate/elements/cust_payby.html b/httemplate/elements/cust_payby.html index f30d18557..1d789a47b 100644 --- a/httemplate/elements/cust_payby.html +++ b/httemplate/elements/cust_payby.html @@ -180,11 +180,11 @@ <& /elements/select-state.html, 'prefix' => $name. '_pay', 'empty' => emt('(choose)'), - 'state' => $cgi->param($name.'_paystate') - || $cust_payby->paystate, + 'state' => ( scalar($cgi->param($name.'_paystate')) + || $cust_payby->paystate ), #was cust_main->country in 3.x, but this will do until/unlesss # someone needs to track foreign bank states - 'country' => scalar($conf->config('countrydefault')) || 'US', + 'country' => ( scalar($conf->config('countrydefault')) || 'US' ), &>
<% mt('Bank state') |h %>