default to is_active on custom field api
authoreileen <eileen@fuzion.co.nz>
Thu, 6 Jun 2013 10:11:54 +0000 (22:11 +1200)
committereileen <eileen@fuzion.co.nz>
Thu, 6 Jun 2013 10:11:54 +0000 (22:11 +1200)
api/v3/CustomField.php

index a5af4c5a99ef71eba849fd98457443002379d4f2..300f0d72e672db08af9f6f8b0a0212d05672b1b8 100644 (file)
@@ -95,6 +95,7 @@ function _civicrm_api3_custom_field_create_spec(&$params) {
     'type' => CRM_Utils_Type::T_BOOL,
   );
   $params['data_type']['api.default'] = 'String';
+  $params['is_active']['api.default'] = 1;
 }
 
 /**