From 47352b734bb7ccf3e4d78c606dadd907707cea20 Mon Sep 17 00:00:00 2001 From: eileenmcnaugton Date: Mon, 22 Feb 2016 14:51:58 +1300 Subject: [PATCH] CRM-18077 pledge receipting dependent on page config --- CRM/Contribute/Form/Contribution/Confirm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution/Confirm.php b/CRM/Contribute/Form/Contribution/Confirm.php index 9856174e4c..5c733a583d 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -945,7 +945,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr $form->_params['pledge_id'] = $pledge->id; //send acknowledgment email. only when pledge is created - if ($pledge->id) { + if ($pledge->id && $isEmailReceipt) { //build params to send acknowledgment. $pledgeParams['id'] = $pledge->id; $pledgeParams['receipt_from_name'] = $form->_values['receipt_from_name']; -- 2.25.1