Skip to content

Commit

Permalink
Merge pull request #29653 from agileware/CIVICRM-2206
Browse files Browse the repository at this point in the history
dev/core#5071 Use first pricefield ID when inferring membership type
  • Loading branch information
eileenmcnaughton authored Mar 8, 2024
2 parents d37cb36 + 85b33a3 commit 3d9e8c2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion CRM/Contribute/Form/Contribution/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ public function setDefaultValues() {
elseif (!empty($priceFieldOption['is_default']) && (!isset($this->_defaults[$priceFieldName]) ||
($val['html_type'] === 'CheckBox' && !isset($this->_defaults[$priceFieldName][$keys])))) {
CRM_Price_BAO_PriceSet::setDefaultPriceSetField($priceFieldName, $keys, $val['html_type'], $this->_defaults);
$memtypeID = CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceFieldValue', $this->_defaults[$priceFieldName], 'membership_type_id');
}
}
}
Expand Down

0 comments on commit 3d9e8c2

Please sign in to comment.