diff --git a/CRM/Contribute/BAO/Contribution/Utils.php b/CRM/Contribute/BAO/Contribution/Utils.php index e936512ac9a6..5e3b9488284a 100644 --- a/CRM/Contribute/BAO/Contribution/Utils.php +++ b/CRM/Contribute/BAO/Contribution/Utils.php @@ -180,8 +180,8 @@ public static function processConfirm( $contribution->payment_status_id = $result['payment_status_id']; } $result['contribution'] = $contribution; - if ($result['payment_status_id'] == CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', - 'status_id', 'Pending') && $payment->isSendReceiptForPending()) { + if ($result['payment_status_id'] == CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', 'Pending') + && $payment->isSendReceiptForPending()) { CRM_Contribute_BAO_ContributionPage::sendMail($contactID, $form->_values, $contribution->is_test diff --git a/CRM/Core/Payment/Manual.php b/CRM/Core/Payment/Manual.php index deaff4090748..be4a171c9667 100644 --- a/CRM/Core/Payment/Manual.php +++ b/CRM/Core/Payment/Manual.php @@ -117,7 +117,7 @@ public function doPayment(&$params, $component = 'contribute') { */ protected function getResult() { if (!$this->result) { - $this->setResult(CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'status_id', 'Pending')); + $this->setResult(CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', 'Pending')); } return $this->result; }