Skip to content

Commit

Permalink
Merge pull request #2999 from GinkgoFJG/CRM-14545
Browse files Browse the repository at this point in the history
Fixed CRM-14545. "Contribution Amounts Label" is respected even when used for memberships.
kurund committed Apr 28, 2014

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 6881270 + e34b39d commit 6fd6609
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions CRM/Price/BAO/PriceField.php
Original file line number Diff line number Diff line change
@@ -295,9 +295,7 @@ public static function addQuickFormElement(&$qf,
$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.

0 comments on commit 6fd6609

Please sign in to comment.