Skip to content

Commit

Permalink
Merge pull request #13497 from jitendrapurohit/core-681
Browse files Browse the repository at this point in the history
dev/core#681 - Fatal Error on submitting "Change Case Status" activit…
  • Loading branch information
colemanw authored Jan 25, 2019
2 parents 9493687 + 993cb50 commit cb03f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Case/Form/Activity/ChangeCaseStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public static function endPostProcess(&$form, &$params, $activity) {

// 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) {
Expand Down

0 comments on commit cb03f46

Please sign in to comment.