--HR-351 -New Case cancel button redirection to case dashboard.
authorPoonam <poonam@poonam.(none)>
Fri, 27 Jun 2014 10:42:26 +0000 (16:12 +0530)
committerPoonam <poonam@poonam.(none)>
Fri, 27 Jun 2014 10:42:26 +0000 (16:12 +0530)
CRM/Case/Form/Activity/OpenCase.php

index 2fe9f3092773fc74f065e1dfb455442c44bf47fc..a950220b0c191080ce904cbc96d4be6ec995ebea 100644 (file)
@@ -84,6 +84,8 @@ class CRM_Case_Form_Activity_OpenCase {
 
     // Add attachments
     CRM_Core_BAO_File::buildAttachment( $form, 'civicrm_activity', $form->_activityId );
+    $session = CRM_Core_Session::singleton();
+    $session->pushUserContext(CRM_Utils_System::url('civicrm/case', 'reset=1'));
   }
 
   /**