From: Jitendra Purohit Date: Wed, 23 Jan 2019 09:54:23 +0000 (+0530) Subject: dev/core#681 - Fatal Error on submitting "Change Case Status" activity form X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=993cb50819c86d74e7258083a302a0e9c89ed229;p=civicrm-core.git dev/core#681 - Fatal Error on submitting "Change Case Status" activity form --- diff --git a/CRM/Case/Form/Activity/ChangeCaseStatus.php b/CRM/Case/Form/Activity/ChangeCaseStatus.php index f7446aee0c..fca17157c3 100644 --- a/CRM/Case/Form/Activity/ChangeCaseStatus.php +++ b/CRM/Case/Form/Activity/ChangeCaseStatus.php @@ -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) {