diff --git a/CRM/Contribute/Form/Contribution/Main.php b/CRM/Contribute/Form/Contribution/Main.php index b04d19144b0a..c8455b681e92 100644 --- a/CRM/Contribute/Form/Contribution/Main.php +++ b/CRM/Contribute/Form/Contribution/Main.php @@ -250,7 +250,7 @@ public function setDefaultValues() { $opMemTypeId = $priceFieldOption['membership_type_id'] ?? NULL; $priceFieldName = 'price_' . $priceFieldOption['price_field_id']; $priceFieldValue = CRM_Price_BAO_PriceSet::getPriceFieldValueFromURL($this, $priceFieldName); - if (!empty($priceFieldValue) && !$existingMembershipTypeID) { + if (!empty($priceFieldValue)) { CRM_Price_BAO_PriceSet::setDefaultPriceSetField($priceFieldName, $priceFieldValue, $val['html_type'], $this->_defaults); // break here to prevent overwriting of default due to 'is_default' // option configuration or setting of current membership or