update fix for bug CRM-15268
authorJaap Jansma <info@edeveloper.nl>
Tue, 9 Sep 2014 14:13:51 +0000 (16:13 +0200)
committerJaap Jansma <info@edeveloper.nl>
Tue, 9 Sep 2014 14:13:51 +0000 (16:13 +0200)
api/v3/Case.php

index 063d6de4f3262a5f9c517b699111508ab3c3d714..9ff8b495c9adf5409ec40ddb373a7c6b078fed46 100644 (file)
@@ -338,8 +338,9 @@ function civicrm_api3_case_update($params) {
   $case = array();
 
   _civicrm_api3_object_to_array($dao, $case);
+  $values[$dao->id] = $case;
 
-  return civicrm_api3_create_success($case, $params, 'case', 'update', $dao);
+  return civicrm_api3_create_success($values, $params, 'case', 'update', $dao);
 }
 
 /**