CRM-12733 fix : while case type is changed reset timeline to NO not respected
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Fri, 7 Jun 2013 12:58:07 +0000 (18:28 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Fri, 7 Jun 2013 12:58:07 +0000 (18:28 +0530)
CRM/Case/XMLProcessor/Process.php

index 1418b8156ea4e0234049e2aceb3fae6bc28099fe..25b0308db93f779eb4d7cda802affbde73cb4fb7 100644 (file)
@@ -120,7 +120,8 @@ class CRM_Case_XMLProcessor_Process extends CRM_Case_XMLProcessor {
   }
 
   function processStandardTimeline($activitySetXML, &$params) {
-    if ('Change Case Type' == CRM_Utils_Array::value('activityTypeName', $params)) {
+    if ('Change Case Type' == CRM_Utils_Array::value('activityTypeName', $params)
+      && CRM_Utils_Array::value('resetTimeline', $params, TRUE)) {
       // delete all existing activities which are non-empty
       $this->deleteEmptyActivity($params);
     }