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:
eaefbeb
)
--Tweak to condition to check create condition
author
Nileema
<nileema@nileema.(none)>
Wed, 7 May 2014 14:48:06 +0000
(20:18 +0530)
committer
Nileema
<nileema@nileema.(none)>
Wed, 7 May 2014 14:48:06 +0000
(20:18 +0530)
api/v3/CaseType.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/CaseType.php
b/api/v3/CaseType.php
index e3a137c47aad33cf04efe7fb066355ca8c5ca5eb..f877bdea323b30144ef0b28d0b2060a16216873a 100644
(file)
--- a/
api/v3/CaseType.php
+++ b/
api/v3/CaseType.php
@@
-52,7
+52,7
@@
function civicrm_api3_case_type_create($params) {
civicrm_api3_verify_mandatory($params, _civicrm_api3_get_DAO(__FUNCTION__), array('name'));
- if (!array_key_exists('is_active', $params) &&
!
empty($params['id'])) {
+ if (!array_key_exists('is_active', $params) && empty($params['id'])) {
$params['is_active'] = TRUE;
}
return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'CaseType');