From: eileenmcnaugton Date: Mon, 22 Feb 2016 01:51:58 +0000 (+1300) Subject: CRM-18077 pledge receipting dependent on page config X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=47352b734bb7ccf3e4d78c606dadd907707cea20;p=civicrm-core.git CRM-18077 pledge receipting dependent on page config --- 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'];