From 6933b6e1e06b7e67bcce96eaee79e89451ceb5f5 Mon Sep 17 00:00:00 2001 From: "Matthew Wire (MJW Consulting)" Date: Fri, 21 Sep 2018 12:50:58 +0100 Subject: [PATCH] Remove redundant code to get email address which we've already retrieved --- CRM/Contribute/Form/Contribution.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index 3090952dc5..f7919150da 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -1049,14 +1049,6 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP $now = date('YmdHis'); - // we need to retrieve email address - if ($this->_context == 'standalone' && !empty($submittedValues['is_email_receipt'])) { - list($this->userDisplayName, - $this->userEmail - ) = CRM_Contact_BAO_Contact_Location::getEmailDetails($contactID); - $this->assign('displayName', $this->userDisplayName); - } - $this->_contributorEmail = $this->userEmail; $this->_contributorContactID = $contactID; $this->processBillingAddress(); -- 2.25.1