From: yashodha Date: Fri, 25 Mar 2016 08:46:45 +0000 (+0530) Subject: CRM-18290: Edits to activities are not saved in CiviCase X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=309c49b216bf0281d35fa336f5c64a225083295e;p=civicrm-core.git CRM-18290: Edits to activities are not saved in CiviCase ---------------------------------------- * CRM-18290: Edits to activities are not saved in CiviCase https://issues.civicrm.org/jira/browse/CRM-18290 --- diff --git a/CRM/Case/Form/Activity.php b/CRM/Case/Form/Activity.php index 1e5e92ffa7..4aef5c0270 100644 --- a/CRM/Case/Form/Activity.php +++ b/CRM/Case/Form/Activity.php @@ -415,7 +415,7 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity { if ($this->_activityId) { // retrieve and include the custom data of old Activity $oldActivity = civicrm_api3('Activity', 'getsingle', array('id' => $this->_activityId)); - $params = array_merge($params, $oldActivity); + $params = array_merge($oldActivity, $params); // unset custom fields-id from params since we want custom // fields to be saved for new activity.