From ea12ce50c31d8ef96477f504a92d69e232d13c5a Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Fri, 31 Oct 2014 15:51:49 +0530 Subject: [PATCH] CRM-15508 Custom Group Create API references non existant var Fix --- api/v3/CustomGroup.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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); } /** -- 2.25.1