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:
bc11a64
)
CRM-13913 - api/v3/WordReplacement - Set default (is_active=1)
author
Tim Otten
<totten@civicrm.org>
Wed, 4 Dec 2013 23:15:09 +0000
(15:15 -0800)
committer
Tim 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
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/WordReplacement.php
b/api/v3/WordReplacement.php
index 7a1e2877c98c1b0affb66dab5630f05ebd8f7c9f..cab3102464553e48d78124e05ff7729730336c0e 100644
(file)
--- a/
api/v3/WordReplacement.php
+++ b/
api/v3/WordReplacement.php
@@
-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']);
}