dev/core#2901 Fix send email regression
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 10 Oct 2021 00:59:58 +0000 (13:59 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 10 Oct 2021 01:55:13 +0000 (14:55 +1300)
CRM/Contact/Form/Task/EmailTrait.php

index 8d6bb3fd3ab1156aec6602891b3314ef6f36ac2b..2f53b8f4767e4969c64b6b8938b2e9d091176d4a 100644 (file)
@@ -182,7 +182,7 @@ trait CRM_Contact_Form_Task_EmailTrait {
     //get the group of contacts as per selected by user in case of Find Activities
     if (!empty($this->_activityHolderIds)) {
       $contact = $this->get('contacts');
-      $this->_allContactIds = $this->_contactIds = $contact;
+      $this->_allContactIds = $this->_toContactIds = $this->_contactIds = $contact;
     }
 
     // check if we need to setdefaults and check for valid contact emails / communication preferences