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:
dcf5b21
)
CRM-15299 fix caseType behaviour on getcount
author
Eileen McNaughton
<eileen@fuzion.co.nz>
Mon, 15 Sep 2014 04:28:07 +0000
(16:28 +1200)
committer
Eileen McNaughton
<eileen@fuzion.co.nz>
Mon, 15 Sep 2014 09:24:30 +0000
(21:24 +1200)
api/v3/CaseType.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/CaseType.php
b/api/v3/CaseType.php
index 654f20ce1a715ed371672124fbedd9f3a6d1acea..521b0d6472530cdee5e0ece9f40e1c052be9522d 100644
(file)
--- a/
api/v3/CaseType.php
+++ b/
api/v3/CaseType.php
@@
-76,9
+76,10
@@
function civicrm_api3_case_type_create($params) {
* @access public
*/
function civicrm_api3_case_type_get($params) {
- civicrm_api3_verify_mandatory($params);
+ if (!empty($params['options']) && !empty($params['options']['is_count'])) {
+ return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
+ }
$caseTypes = _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
-
// format case type, to fetch xml definition
return _civicrm_api3_case_type_get_formatResult($caseTypes);
}