From: Eileen McNaughton Date: Wed, 5 Nov 2014 03:58:15 +0000 (+1300) Subject: CRM-15555 QA fix - ensure email always assigned X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=99efbbf8c0817e8517f03abbe45ab6326c9590fa;p=civicrm-core.git CRM-15555 QA fix - ensure email always assigned --- 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();