CRM-15508 Custom Group Create API references non existant var Fix
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Fri, 31 Oct 2014 10:21:49 +0000 (15:51 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Fri, 31 Oct 2014 10:21:49 +0000 (15:51 +0530)
api/v3/CustomGroup.php

index 5f6de41f1ed0c756590d036d1cc0bc557b853f05..285a6c9ccad169df3e33a6f93ecc649dbcbbc098 100644 (file)
@@ -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);
 }
 
 /**