Unverified Commit 3ee8b774 authored by Monish Deb's avatar Monish Deb Committed by GitHub

Merge pull request #11461 from mattwire/tax_calcs_on_edit_contribution

CRM-20676 Add tax_amount to contribution create params so it doesn't get added …
parents 16f3fde9 4afeb336
......@@ -1619,8 +1619,8 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
}
$params['line_item'] = $lineItem;
$params['payment_processor_id'] = $params['payment_processor'] = CRM_Utils_Array::value('id', $this->_paymentProcessor);
if (isset($submittedValues['tax_amount'])) {
$params['tax_amount'] = $submittedValues['tax_amount'];
if (isset($this->_values['tax_amount'])) {
$params['tax_amount'] = $this->_values['tax_amount'];
}
//create contribution.
if ($isQuickConfig) {
......
Markdown is supported
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