--fixes to store the target id for activity of case type
authorDivya Jose <divya@divya.(none)>
Thu, 29 May 2014 07:18:12 +0000 (12:48 +0530)
committerDivya Jose <divya@divya.(none)>
Thu, 29 May 2014 07:18:12 +0000 (12:48 +0530)
CRM/Case/Form/Activity.php

index 0f93fb404a3f9107c079493714d830122a2d8df2..2db43db8b920a4d08bde8ec230ae1c42bcd48398 100644 (file)
@@ -441,8 +441,8 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity {
     $params['activity_type_id'] = $this->_activityTypeId;
 
     // format with contact (target contact) values
-    if (isset($params['contact'][1])) {
-      $params['target_contact_id'] = explode(',', $params['contact'][1]);
+    if (isset($params['target_contact_id'])) {
+      $params['target_contact_id'] = explode(',', $params['target_contact_id']);
     }
     else {
       $params['target_contact_id'] = array();