custom field api should default to 'is_active' = 1
authoreileen <eileen@fuzion.co.nz>
Thu, 6 Jun 2013 08:36:15 +0000 (20:36 +1200)
committereileen <eileen@fuzion.co.nz>
Thu, 6 Jun 2013 08:36:15 +0000 (20:36 +1200)
api/v3/CustomField.php

index 7eeda3daf2b330199c748b81ca23efc96e3ccb74..fbc1fd279e5a282cf0cfd5fbdd6f55a29122b144 100644 (file)
@@ -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,