Skip to content

Commit

Permalink
Merge pull request #9532 from jitendrapurohit/CRM-19263
Browse files Browse the repository at this point in the history
Additional fixes for CRM-19263
  • Loading branch information
Yashodha Chaku authored Dec 13, 2016
2 parents 5c7467c + 24cf745 commit 88c1e18
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions CRM/Contribute/Form/ContributionBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,15 @@ public function preProcess() {
// 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 &&
Expand Down

0 comments on commit 88c1e18

Please sign in to comment.