projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62d798d
)
If no case_id provided to Case API, use the provided ID.
author
Chris Burgess
<chris@giantrobot.co.nz>
Fri, 21 Oct 2016 03:41:06 +0000
(16:41 +1300)
committer
Chris Burgess
<chris@giantrobot.co.nz>
Fri, 21 Oct 2016 03:41:06 +0000
(16:41 +1300)
CRM-19552
api/v3/Case.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/Case.php
b/api/v3/Case.php
index ba30a4a06731de57005e56573afac19bb8cff738..87042ecdc75441ee87bc33a6d3e9f35038dd5189 100644
(file)
--- a/
api/v3/Case.php
+++ b/
api/v3/Case.php
@@
-310,6
+310,10
@@
function _civicrm_api3_case_deprecation() {
* api result array
*/
function civicrm_api3_case_update($params) {
+ if (!isset($params['case_id']) && isset($params['id'])) {
+ $params['case_id'] = $params['id'];
+ }
+
//check parameters
civicrm_api3_verify_mandatory($params, NULL, array('id'));