From: jitendrapurohit Date: Tue, 13 Dec 2016 10:38:47 +0000 (+0530) Subject: Additional fixes for CRM-19263 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=24cf745846d074d18385077d368c9a533324cda8;p=civicrm-core.git Additional fixes for CRM-19263 --- diff --git a/CRM/Contribute/Form/ContributionBase.php b/CRM/Contribute/Form/ContributionBase.php index 7bdec1a478..ab112e2a8d 100644 --- a/CRM/Contribute/Form/ContributionBase.php +++ b/CRM/Contribute/Form/ContributionBase.php @@ -292,9 +292,15 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form { // check for is_monetary status $isMonetary = CRM_Utils_Array::value('is_monetary', $this->_values); $isPayLater = CRM_Utils_Array::value('is_pay_later', $this->_values); - if (!empty($this->_ccid) && $isPayLater) { - $isPayLater = FALSE; - $this->_values['is_pay_later'] = FALSE; + if (!empty($this->_ccid)) { + $this->_values['financial_type_id'] = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_Contribution', + $this->_ccid, + 'financial_type_id' + ); + if ($isPayLater) { + $isPayLater = FALSE; + $this->_values['is_pay_later'] = FALSE; + } } if ($isMonetary &&