[freeside-commits] branch master updated. 6ac44318c23b868404eeaf30b7fecef98271b7d8

Christopher Burger burgerc at freeside.biz
Tue May 15 11:54:02 PDT 2018


The branch, master has been updated
       via  6ac44318c23b868404eeaf30b7fecef98271b7d8 (commit)
      from  93a716370d8a53ec1a301115ae543eed5961e0c0 (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 6ac44318c23b868404eeaf30b7fecef98271b7d8
Author: Christopher Burger <burgerc at freeside.biz>
Date:   Tue May 15 14:53:38 2018 -0400

    RT# 34134 - Fixed error with amount not being sent when field disabled.

diff --git a/httemplate/elements/tr-select-payment_options.html b/httemplate/elements/tr-select-payment_options.html
index 15f92775a..a59963a91 100644
--- a/httemplate/elements/tr-select-payment_options.html
+++ b/httemplate/elements/tr-select-payment_options.html
@@ -91,6 +91,7 @@ Example:
         	document.getElementById('invoice_row').style.display = 'none';
           document.getElementById('<% $opt{prefix} %>invoice').value = 'select';
           document.getElementById('amount').value = amount.toFixed(2);
+          document.getElementById('amount').disabled = false;
           if (document.getElementById('ajax_surcharge_cell')) {
             document.getElementById('ajax_surcharge_cell').innerHTML = '<FONT SIZE="+1">A credit card surcharge of <% $money_char %>' + surcharge.toFixed(2) + ' is included in this payment</FONT>';
           }
@@ -115,6 +116,7 @@ Example:
         else {
         	document.getElementById('payment_amount_row').style.display = 'block';
           document.getElementById('amount').value = amount.toFixed(2);
+          document.getElementById('amount').disabled = false;
           if (document.getElementById('ajax_surcharge_cell')) {
             document.getElementById('ajax_surcharge_cell').innerHTML = '<FONT SIZE="+1">A credit card surcharge of <% $money_char %>' + surcharge.toFixed(2) + ' is included in this payment</FONT>';
           }

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

Summary of changes:
 httemplate/elements/tr-select-payment_options.html | 2 ++
 1 file changed, 2 insertions(+)




More information about the freeside-commits mailing list