[freeside-commits] branch FREESIDE_4_BRANCH updated. 840dbc8beed6098e3b7ae17dc2553a39f5476553

Ivan ivan at 420.am
Sun Sep 25 14:42:46 PDT 2016


The branch, FREESIDE_4_BRANCH has been updated
       via  840dbc8beed6098e3b7ae17dc2553a39f5476553 (commit)
      from  f4ab9c03202d393907a195b957bbd134ca972985 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 840dbc8beed6098e3b7ae17dc2553a39f5476553
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sun Sep 25 14:42:45 2016 -0700

    scalar cgi param

diff --git a/httemplate/browse/part_pkg_taxproduct/billsoft.html b/httemplate/browse/part_pkg_taxproduct/billsoft.html
index c58ac30..adb5c3c 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')),
 &>
 </%def>
 <%init>
diff --git a/httemplate/browse/part_pkg_taxproduct/suretax.html b/httemplate/browse/part_pkg_taxproduct/suretax.html
index 8f237f3..178062c 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')),
 &>
 </%def>
 <%init>
diff --git a/httemplate/elements/cust_payby.html b/httemplate/elements/cust_payby.html
index f30d185..1d789a4 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' ),
           &>
           <BR><FONT SIZE="-1"><% mt('Bank state') |h %></FONT>
         </TD>

-----------------------------------------------------------------------

Summary of changes:
 httemplate/browse/part_pkg_taxproduct/billsoft.html |    2 +-
 httemplate/browse/part_pkg_taxproduct/suretax.html  |    2 +-
 httemplate/elements/cust_payby.html                 |    6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)




More information about the freeside-commits mailing list