This is still overriden on the contact email.
class CRM_Activity_Form_Task_Email extends CRM_Activity_Form_Task {
use CRM_Contact_Form_Task_EmailTrait;
- /**
- * Build all the data structures needed to build the form.
- *
- * @throws \CiviCRM_API3_Exception
- */
- public function preProcess() {
- CRM_Contact_Form_Task_EmailCommon::preProcessFromAddress($this);
- parent::preProcess();
- $this->setContactIDs();
- $this->assign('single', $this->_single);
- }
-
/**
* List available tokens for this form.
*
*/
public $_bccContactIds = [];
+ /**
+ * Build all the data structures needed to build the form.
+ *
+ * @throws \CiviCRM_API3_Exception
+ * @throws \CRM_Core_Exception
+ */
+ public function preProcess() {
+ CRM_Contact_Form_Task_EmailCommon::preProcessFromAddress($this);
+ parent::preProcess();
+ $this->setContactIDs();
+ $this->assign('single', $this->_single);
+ }
+
/**
* Build the form object.
*
class CRM_Contribute_Form_Task_Email extends CRM_Contribute_Form_Task {
use CRM_Contact_Form_Task_EmailTrait;
- /**
- * Build all the data structures needed to build the form.
- */
- public function preProcess() {
- CRM_Contact_Form_Task_EmailCommon::preProcessFromAddress($this);
- parent::preProcess();
-
- // we have all the contribution ids, so now we get the contact ids
- parent::setContactIDs();
-
- $this->assign('single', $this->_single);
- }
-
/**
* List available tokens for this form.
*
class CRM_Event_Form_Task_Email extends CRM_Event_Form_Task {
use CRM_Contact_Form_Task_EmailTrait;
- /**
- * Build all the data structures needed to build the form.
- */
- public function preProcess() {
- CRM_Contact_Form_Task_EmailCommon::preProcessFromAddress($this);
- parent::preProcess();
-
- // we have all the participant ids, so now we get the contact ids
- parent::setContactIDs();
-
- $this->assign('single', $this->_single);
- }
-
/**
* List available tokens for this form.
*
class CRM_Member_Form_Task_Email extends CRM_Member_Form_Task {
use CRM_Contact_Form_Task_EmailTrait;
- /**
- * Build all the data structures needed to build the form.
- *
- * @return void
- *
- * @throws \CRM_Core_Exception
- * @throws \CiviCRM_API3_Exception
- */
- public function preProcess() {
- CRM_Contact_Form_Task_EmailCommon::preProcessFromAddress($this);
- parent::preProcess();
-
- // we have all the membership ids, so now we get the contact ids
- parent::setContactIDs();
-
- $this->assign('single', $this->_single);
- }
-
/**
* List available tokens for this form.
*