Skip to content

Commit

Permalink
Merge pull request #16018 from mattwire/manualcontributionstatus
Browse files Browse the repository at this point in the history
Fix retrieving contribution_status_id for manual payment processor
  • Loading branch information
seamuslee001 authored Jan 18, 2020
2 parents f63756b + ac1493e commit b6a5d70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CRM/Contribute/BAO/Contribution/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CRM/Core/Payment/Manual.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b6a5d70

Please sign in to comment.