projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7badfe5
)
custom field api should default to 'is_active' = 1
author
eileen
<eileen@fuzion.co.nz>
Thu, 6 Jun 2013 08:36:15 +0000
(20:36 +1200)
committer
eileen
<eileen@fuzion.co.nz>
Thu, 6 Jun 2013 08:36:15 +0000
(20:36 +1200)
api/v3/CustomField.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/CustomField.php
b/api/v3/CustomField.php
index 7eeda3daf2b330199c748b81ca23efc96e3ccb74..fbc1fd279e5a282cf0cfd5fbdd6f55a29122b144 100644
(file)
--- 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,