CRM-18290: Edits to activities are not saved in CiviCase
authoryashodha <yashodha.chaku@webaccessglobal.com>
Fri, 25 Mar 2016 08:46:45 +0000 (14:16 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Fri, 25 Mar 2016 08:46:45 +0000 (14:16 +0530)
----------------------------------------
* CRM-18290: Edits to activities are not saved in CiviCase
  https://issues.civicrm.org/jira/browse/CRM-18290

CRM/Case/Form/Activity.php

index 1e5e92ffa709cc2f1c533d94fe8e19eb4dcfb7a2..4aef5c027002087ac829302e4e78cdc513edd2a5 100644 (file)
@@ -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.