From e1e133d7bd787408722169e6e7afe6d58a17a1a7 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 1 Oct 2021 11:22:53 +1300 Subject: [PATCH] Remove now-silly function --- CRM/Contact/Form/Task/EmailTrait.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/CRM/Contact/Form/Task/EmailTrait.php b/CRM/Contact/Form/Task/EmailTrait.php index da674268c3..f4537c46ce 100644 --- a/CRM/Contact/Form/Task/EmailTrait.php +++ b/CRM/Contact/Form/Task/EmailTrait.php @@ -120,7 +120,6 @@ trait CRM_Contact_Form_Task_EmailTrait { * @throws \API_Exception */ protected function traitPreProcess() { - $this->preProcessFromAddress(); if ($this->isSearchContext()) { // Currently only the contact email form is callable outside search context. parent::preProcess(); @@ -132,22 +131,6 @@ trait CRM_Contact_Form_Task_EmailTrait { } } - /** - * Pre Process Form Addresses to be used in Quickform - * - * @throws \API_Exception - * @throws \CRM_Core_Exception - */ - protected function preProcessFromAddress(): void { - $form = $this; - $form->_emails = []; - - // @TODO remove these line and to it somewhere more appropriate. Currently some classes (e.g Case - // are having to re-write contactIds afterwards due to this inappropriate variable setting - // If we don't have any contact IDs, use the logged in contact ID - $form->_contactIds = $form->_contactIds ?: [CRM_Core_Session::getLoggedInContactID()]; - } - /** * Build the form object. * -- 2.25.1