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:
11a140a
)
CRM-15578 - Respect setting "dedupe_email_default"
author
Tim Otten
<totten@civicrm.org>
Mon, 9 Feb 2015 20:21:21 +0000
(12:21 -0800)
committer
Tim Otten
<totten@civicrm.org>
Wed, 11 Feb 2015 16:50:52 +0000
(08:50 -0800)
api/v3/Mailing.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/Mailing.php
b/api/v3/Mailing.php
index 7c8e443ad29db9f02cce14f81875161f89d3690d..58d6213996439bd7ede8934e71350f572e32a381 100755
(executable)
--- a/
api/v3/Mailing.php
+++ b/
api/v3/Mailing.php
@@
-110,7
+110,9
@@
function _civicrm_api3_mailing_create_spec(&$params) {
'track_civimail_replies', NULL, FALSE
);
$params['visibility']['api.default'] = 'Public Pages';
- $params['dedupe_email']['api.default'] = TRUE;
+ $params['dedupe_email']['api.default'] = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::MAILING_PREFERENCES_NAME,
+ 'dedupe_email_default', NULL, FALSE
+ );
$params['forward_replies']['api.default'] = FALSE;
$params['auto_responder']['api.default'] = FALSE;