CRM-13913 - api/v3/WordReplacement - Remove is_active default
authorTim Otten <totten@civicrm.org>
Thu, 5 Dec 2013 00:29:37 +0000 (16:29 -0800)
committerTim Otten <totten@civicrm.org>
Thu, 5 Dec 2013 00:29:37 +0000 (16:29 -0800)
The API-based default is redundant with the schema-based default.

----------------------------------------
* CRM-13913: WordReplacements created via API should default to enabled
  http://issues.civicrm.org/jira/browse/CRM-13913

api/v3/WordReplacement.php

index cab3102464553e48d78124e05ff7729730336c0e..7a1e2877c98c1b0affb66dab5630f05ebd8f7c9f 100644 (file)
@@ -71,7 +71,6 @@ function civicrm_api3_word_replacement_create($params) {
  * @param array $params array or parameters determined by getfields
  */
 function _civicrm_api3_word_replacement_create_spec(&$params) {
-  $params['is_active']['api.default'] = 1;
   unset($params['version']);
 }