$params = $this->controller->exportValues($this->_name);
$feeBlock = $this->_values['fee'];
- $lineItems = $this->_values['line_items'];
- CRM_Price_BAO_LineItem::changeFeeSelections($params, $this->_participantId, 'participant', $this->getContributionID(), $feeBlock, $lineItems);
+ CRM_Price_BAO_LineItem::changeFeeSelections($params, $this->_participantId, 'participant', $this->getContributionID(), $feeBlock);
$this->contributionAmt = CRM_Core_DAO::getFieldValue('CRM_Contribute_BAO_Contribution', $this->getContributionID(), 'total_amount');
// email sending
if (!empty($params['send_receipt'])) {
return;
}
- // fetch lineitems by updated membership ID
- $lineItems = CRM_Price_BAO_LineItem::getLineItems($this->getMembershipID(), 'membership');
// retrieve the related contribution ID
$contributionID = CRM_Core_DAO::getFieldValue(
'CRM_Member_DAO_MembershipPayment',
$this->getMembershipID(),
'membership',
$contributionID,
- $priceSetDetails['fields'],
- $lineItems
+ $priceSetDetails['fields']
);
CRM_Core_Session::setStatus(ts('Associated contribution is updated on membership type change.'), ts('Success'), 'success');
}