From: jitendrapurohit Date: Fri, 31 Oct 2014 10:21:49 +0000 (+0530) Subject: CRM-15508 Custom Group Create API references non existant var Fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ea12ce50c31d8ef96477f504a92d69e232d13c5a;p=civicrm-core.git CRM-15508 Custom Group Create API references non existant var Fix --- diff --git a/api/v3/CustomGroup.php b/api/v3/CustomGroup.php index 5f6de41f1e..285a6c9cca 100644 --- a/api/v3/CustomGroup.php +++ b/api/v3/CustomGroup.php @@ -76,11 +76,7 @@ function civicrm_api3_custom_group_create($params) { $params['extends_entity_column_value'] = CRM_Utils_Array::explodePadded($params['extends_entity_column_value']); } - - $customGroup = CRM_Core_BAO_CustomGroup::create($params); - - _civicrm_api3_object_to_array($customGroup, $values[$customGroup->id]); - return civicrm_api3_create_success($values, $params, 'custom_group', $customGroup); + return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params); } /**