scalar cgi param
authorIvan Kohler <ivan@freeside.biz>
Sun, 25 Sep 2016 21:42:44 +0000 (14:42 -0700)
committerIvan Kohler <ivan@freeside.biz>
Sun, 25 Sep 2016 21:42:44 +0000 (14:42 -0700)
httemplate/browse/part_pkg_taxproduct/billsoft.html
httemplate/browse/part_pkg_taxproduct/suretax.html
httemplate/elements/cust_payby.html

index c58ac30..adb5c3c 100755 (executable)
@@ -67,7 +67,7 @@ $service_labels{''} = $trans_labels{''} = '';
 &>
 <& /elements/hidden.html,
   field       => 'id',
-  curr_value  => $cgi->param('id'),
+  curr_value  => scalar($cgi->param('id')),
 &>
 </%def>
 <%init>
index 8f237f3..178062c 100755 (executable)
@@ -124,7 +124,7 @@ foreach my $row ( qsearch({
 &>
 <& /elements/hidden.html,
   field       => 'id',
-  curr_value  => $cgi->param('id'),
+  curr_value  => scalar($cgi->param('id')),
 &>
 </%def>
 <%init>
index f30d185..1d789a4 100644 (file)
           <& /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' ),
           &>
           <BR><FONT SIZE="-1"><% mt('Bank state') |h %></FONT>
         </TD>