From 99efbbf8c0817e8517f03abbe45ab6326c9590fa Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 5 Nov 2014 16:58:15 +1300 Subject: [PATCH] CRM-15555 QA fix - ensure email always assigned --- CRM/Contribute/Form/AbstractEditPayment.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Contribute/Form/AbstractEditPayment.php b/CRM/Contribute/Form/AbstractEditPayment.php index 5e9be9e97c..3d8ea49997 100644 --- a/CRM/Contribute/Form/AbstractEditPayment.php +++ b/CRM/Contribute/Form/AbstractEditPayment.php @@ -580,12 +580,12 @@ LEFT JOIN civicrm_contribution on (civicrm_contribution.contact_id = civicrm_co */ protected function assignPaymentRelatedVariables() { try { + if ($this->_contactID) { + list($this->userDisplayName, $this->userEmail) = CRM_Contact_BAO_Contact_Location::getEmailDetails($this->_contactID); + $this->assign('displayName', $this->userDisplayName); + } if ($this->_mode) { $this->assignProcessors(); - if ($this->_contactID) { - list($this->userDisplayName, $this->userEmail) = CRM_Contact_BAO_Contact_Location::getEmailDetails($this->_contactID); - $this->assign('displayName', $this->userDisplayName); - } $this->assignBillingType(); -- 2.25.1