From a82f59a17ceec724faaf603874d522977236b8c1 Mon Sep 17 00:00:00 2001 From: CiviCRM Date: Tue, 18 Nov 2014 18:43:21 +0530 Subject: [PATCH] CRM-15611: fix send copy for case activity --- CRM/Case/Form/Activity.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Case/Form/Activity.php b/CRM/Case/Form/Activity.php index 511b4880e3..0a44211051 100644 --- a/CRM/Case/Form/Activity.php +++ b/CRM/Case/Form/Activity.php @@ -318,7 +318,7 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity { $this->add('select', 'medium_id', ts('Medium'), $encounterMediums, TRUE); $i = 0; foreach ($this->_caseId as $key => $val) { - $this->_relatedContacts[] = CRM_Case_BAO_Case::getRelatedAndGlobalContacts($val); + $this->_relatedContacts[] = $rgc = CRM_Case_BAO_Case::getRelatedAndGlobalContacts($val); $contName = CRM_Case_BAO_Case::getContactNames($val); foreach ($contName as $nkey => $nval) { array_push($this->_relatedContacts[$i][0] , $this->_relatedContacts[$i][0]['managerOf']= $nval['display_name']); @@ -328,7 +328,7 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity { //add case client in send a copy selector.CRM-4438. foreach ($this->_caseId as $key => $val) { - $relatedContacts[] = CRM_Case_BAO_Case::getContactNames($val); + $relatedContacts[] = $relCon= CRM_Case_BAO_Case::getContactNames($val); } if (!empty($relatedContacts)) { @@ -349,6 +349,7 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity { ); $this->assign('searchRows', $this->_relatedContacts); } + $this->_relatedContacts = $rgc + $relCon; $this->addFormRule(array('CRM_Case_Form_Activity', 'formRule'), $this); } -- 2.25.1