From ac1493e42bb165b9e8d46aee4dda4fd5a9443ff6 Mon Sep 17 00:00:00 2001 From: "Matthew Wire (MJW Consulting)" Date: Wed, 13 Nov 2019 18:47:58 +1300 Subject: [PATCH] Fix retrieving contribution_status_id for manual payment processor --- CRM/Contribute/BAO/Contribution/Utils.php | 4 ++-- CRM/Core/Payment/Manual.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }