Fixed CRM-14545. "Contribution Amounts Label" is respected even when used for members...
authorFrank J. Gómez <frank@ginkgostreet.com>
Mon, 28 Apr 2014 22:27:16 +0000 (15:27 -0700)
committerFrank J. Gómez <frank@ginkgostreet.com>
Mon, 28 Apr 2014 22:27:16 +0000 (15:27 -0700)
----------------------------------------
* CRM-14545: Contribution page does not respect "Contribution Amounts Label" when page is also used for memberships
  https://issues.civicrm.org/jira/browse/CRM-14545

CRM/Price/BAO/PriceField.php

index 52d64a023d3dfce500efa33f17665bec88d2639a..cfdd8d5f3d9c1b185662b4e3b02f3cdfcb0bf27f 100644 (file)
@@ -295,9 +295,7 @@ class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField {
           $extra = array('onclick' => 'useAmountOther();');
         }
 
-        // if seperate membership payment is used with quick config priceset then change the other amount label
         if (!empty($qf->_membershipBlock) && !empty($qf->_quickConfig) && $field->name == 'other_amount' && empty($qf->_contributionAmount)) {
-          $label = ts('Additional Contribution');
           $useRequired = 0;
         }
         elseif (!empty($fieldOptions[$optionKey]['label'])) {      //check for label.