Commit 848c8fb6 authored by Keith Morgan's avatar Keith Morgan
Browse files

Fixed problem applying discount labels to 'automatic discount' memberships;...

Fixed problem applying discount labels to 'automatic discount' memberships; automatic discounts are used for discount triggering only.
parent 1ccc9e91
......@@ -494,8 +494,7 @@ function cividiscount_civicrm_membershipTypeValues(&$form, &$membershipTypeValue
$discount = array_shift($discounts);
foreach ($membershipTypeValues as &$values) {
if (CRM_Utils_Array::value($values['id'], $discount['memberships']) ||
CRM_Utils_Array::value($values['id'], $discount['autodiscount'])) {
if (CRM_Utils_Array::value($values['id'], $discount['memberships'])) {
list($value, $label) = _cividiscount_calc_discount($values['minimum_fee'], $values['name'], $discount, $autodiscount);
$values['minimum_fee'] = $value;
$values['name'] = $label;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment