From 28ded76269272611b0d41d15713e4d134fa209e9 Mon Sep 17 00:00:00 2001 From: Jitendra Purohit Date: Wed, 20 Aug 2014 15:22:41 +0530 Subject: [PATCH] CRM-15144 --- CRM/Activity/Form/Activity.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Activity/Form/Activity.php b/CRM/Activity/Form/Activity.php index b88a5468e2..798ff23ae8 100644 --- a/CRM/Activity/Form/Activity.php +++ b/CRM/Activity/Form/Activity.php @@ -539,8 +539,8 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task { } // Fixme: why are we getting the wrong keys from upstream? - $defaults['target_contact_id'] = $defaults['target_contact']; - $defaults['assignee_contact_id'] = $defaults['assignee_contact']; + $defaults['target_contact_id'] = CRM_Utils_Array::value('target_contact', $defaults); + $defaults['assignee_contact_id'] = CRM_Utils_Array::value('assignee_contact', $defaults); // set default tags if exists $defaults['tag'] = CRM_Core_BAO_EntityTag::getTag($this->_activityId, 'civicrm_activity'); -- 2.25.1