From: Divya Jose Date: Thu, 29 May 2014 07:18:12 +0000 (+0530) Subject: --fixes to store the target id for activity of case type X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3911d992e2249d51f42b4f901e65d0b68006560b;p=civicrm-core.git --fixes to store the target id for activity of case type --- diff --git a/CRM/Case/Form/Activity.php b/CRM/Case/Form/Activity.php index 0f93fb404a..2db43db8b9 100644 --- a/CRM/Case/Form/Activity.php +++ b/CRM/Case/Form/Activity.php @@ -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();