Skip to content

Commit

Permalink
CRM-19871 CRM-19898 Fix issue where changing weight of a membership t…
Browse files Browse the repository at this point in the history
…ype changes the default membership type for contribution pages
  • Loading branch information
seamuslee001 committed Jan 21, 2017
1 parent 9e991d2 commit 7a8fb14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Price/BAO/PriceField.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public static function create(&$params) {

if ($options['membership_type_id']) {
$options['membership_num_terms'] = CRM_Utils_Array::value($index, CRM_Utils_Array::value('membership_num_terms', $params), 1);
$options['is_default'] = CRM_Utils_Array::value($params['membership_type_id'][$index], $defaultArray) ? $defaultArray[$params['membership_type_id'][$index]] : 0,
}

if (CRM_Utils_Array::value($index, CRM_Utils_Array::value('option_financial_type_id', $params))) {
Expand Down

0 comments on commit 7a8fb14

Please sign in to comment.