From 52ae14f00b3c71df6319e45e740203f65c7be788 Mon Sep 17 00:00:00 2001 From: Nileema Date: Wed, 7 May 2014 20:18:06 +0530 Subject: [PATCH] --Tweak to condition to check create condition --- api/v3/CaseType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/CaseType.php b/api/v3/CaseType.php index e3a137c47a..f877bdea32 100644 --- 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'); -- 2.25.1