From: eileen Date: Thu, 6 Jun 2013 08:36:15 +0000 (+1200) Subject: custom field api should default to 'is_active' = 1 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d5841dff77c3027c9efd446d67b73734f78c4958;p=civicrm-core.git custom field api should default to 'is_active' = 1 --- 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,