dev/core#681 - Fatal Error on submitting "Change Case Status" activity form
authorJitendra Purohit <jitendra@fuzion.co.nz>
Wed, 23 Jan 2019 09:54:23 +0000 (15:24 +0530)
committerJitendra Purohit <jitendra@fuzion.co.nz>
Wed, 23 Jan 2019 09:54:23 +0000 (15:24 +0530)
CRM/Case/Form/Activity/ChangeCaseStatus.php

index f7446aee0c5788002b3d8ffd0b98d892e97a1cea..fca17157c303fa6d2649ef60e971527dd2370494 100644 (file)
@@ -173,7 +173,7 @@ class CRM_Case_Form_Activity_ChangeCaseStatus {
 
     // Set case end_date if we're closing the case. Clear end_date if we're (re)opening it.
     if (CRM_Utils_Array::value($params['case_status_id'], $groupingValues) == 'Closed' && !empty($params['activity_date_time'])) {
-      $params['end_date'] = $params['activity_date_time'];
+      $params['end_date'] = CRM_Utils_Date::isoToMysql($params['activity_date_time']);
 
       // End case-specific relationships (roles)
       foreach ($params['target_contact_id'] as $cid) {