From c2e81506f801782b4d3abfe7898012c0ac9ac071 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 5 Nov 2013 13:57:19 -0800 Subject: [PATCH] Case API - Fix undefined index --- api/v3/Case.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v3/Case.php b/api/v3/Case.php index 5f6d4d0deb..5bd7c4103f 100644 --- a/api/v3/Case.php +++ b/api/v3/Case.php @@ -302,7 +302,7 @@ function civicrm_api3_case_update($params) { // get original contact id and creator id of case if (!empty($params['contact_id'])) { - $origContactIds = CRM_Case_BAO_Case::retrieveContactIdsByCaseId($params['case_id']); + $origContactIds = CRM_Case_BAO_Case::retrieveContactIdsByCaseId($params['id']); $origContactId = $origContactIds[1]; } @@ -323,7 +323,7 @@ function civicrm_api3_case_update($params) { } if (!empty($mCaseId[0])) { - $params['case_id'] = $mCaseId[0]; + $params['id'] = $mCaseId[0]; } $dao = new CRM_Case_BAO_Case(); -- 2.25.1