diff --git a/CRM/Contact/Form/Task/EmailTrait.php b/CRM/Contact/Form/Task/EmailTrait.php index 8d6bb3fd3ab1..2f53b8f4767e 100644 --- a/CRM/Contact/Form/Task/EmailTrait.php +++ b/CRM/Contact/Form/Task/EmailTrait.php @@ -182,7 +182,7 @@ public function buildQuickForm() { //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