From d5841dff77c3027c9efd446d67b73734f78c4958 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 6 Jun 2013 20:36:15 +1200 Subject: [PATCH] custom field api should default to 'is_active' = 1 --- api/v3/CustomField.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/v3/CustomField.php b/api/v3/CustomField.php index 7eeda3daf2..fbc1fd279e 100644 --- a/api/v3/CustomField.php +++ b/api/v3/CustomField.php @@ -88,6 +88,7 @@ function civicrm_api3_custom_field_create($params) { function _civicrm_api3_custom_field_create_spec(&$params) { $params['label']['api.required'] = 1; $params['custom_group_id']['api.required'] = 1; + $params['is_active']['api.default'] = 1; $params['option_type'] = array( 'title' => 'This (boolean) field tells the BAO to create an option group for the field if the field type is appropriate', 'api.default' => 1, -- 2.25.1