From 46929486b3d6b22e9d660ae9f9194df8ae7326ee Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 6 Jun 2016 15:55:44 -0600 Subject: [PATCH] CRM-18701 minor, tangental tidy up --- CRM/Event/Form/Participant.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index 10a7db09ed..8de80161bf 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -1045,11 +1045,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment } // Retrieve the name and email of the current user - this will be the FROM for the receipt email - $session = CRM_Core_Session::singleton(); - $userID = $session->get('userID'); - list($userName, - $userEmail - ) = CRM_Contact_BAO_Contact_Location::getEmailDetails($userID); + $userName = CRM_Core_Session::singleton()->getLoggedInContactDisplayName(); if ($this->_contactId) { list($this->_contributorDisplayName, $this->_contributorEmail, $this->_toDoNotEmail) = CRM_Contact_BAO_Contact::getContactDetails($this->_contactId); -- 2.25.1