From b27b4c5d9d4b748519136de5fba8dd869840adfc Mon Sep 17 00:00:00 2001 From: Kuldip Pujara Date: Mon, 22 Aug 2022 19:15:33 +0530 Subject: [PATCH] CIVIPLUS-879: Fix the payment double receipts generate issue --- includes/wf_crm_webform_postprocess.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wf_crm_webform_postprocess.inc b/includes/wf_crm_webform_postprocess.inc index ffd0221a0..75c9ff18a 100644 --- a/includes/wf_crm_webform_postprocess.inc +++ b/includes/wf_crm_webform_postprocess.inc @@ -244,7 +244,7 @@ class wf_crm_webform_postprocess extends wf_crm_webform_base { if (empty($this->submission->is_draft) && !empty($this->ent['contribution'][1]['id']) && !empty($this->contribution_page['is_email_receipt']) - && (!$this->contributionIsIncomplete || $this->contributionIsPayLater) + && $this->contributionIsPayLater ) { $this->sendReceipt(); }