CRM-13913 - api/v3/WordReplacement - Set default (is_active=1)
authorTim Otten <totten@civicrm.org>
Wed, 4 Dec 2013 23:15:09 +0000 (15:15 -0800)
committerTim Otten <totten@civicrm.org>
Wed, 4 Dec 2013 23:15:09 +0000 (15:15 -0800)
----------------------------------------
* CRM-13913: WordReplacements created via API should default to enabled
  http://issues.civicrm.org/jira/browse/CRM-13913

api/v3/WordReplacement.php

index 7a1e2877c98c1b0affb66dab5630f05ebd8f7c9f..cab3102464553e48d78124e05ff7729730336c0e 100644 (file)
@@ -71,6 +71,7 @@ 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']);
 }