projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c67a593
)
Hardcoded ID to constant
author
Matthew Wire
<mjw@mjwconsult.co.uk>
Sun, 10 May 2020 10:56:53 +0000
(11:56 +0100)
committer
Matthew Wire
<mjw@mjwconsult.co.uk>
Sun, 10 May 2020 10:57:22 +0000
(11:57 +0100)
CRM/Core/BAO/Setting.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/BAO/Setting.php
b/CRM/Core/BAO/Setting.php
index 7518e37dc2fdcc1d47f1e92999474776a7dc43f9..c6b18e74e9b2b77e1d22eab805b65de030fca4ee 100644
(file)
--- a/
CRM/Core/BAO/Setting.php
+++ b/
CRM/Core/BAO/Setting.php
@@
-515,7
+515,7
@@
class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting {
public static function onChangeEnvironmentSetting($oldValue, $newValue, $metadata) {
if ($newValue != 'Production') {
$mailing = Civi::settings()->get('mailing_backend');
- if ($mailing['outBound_option'] !=
2
) {
+ if ($mailing['outBound_option'] !=
CRM_Mailing_Config::OUTBOUND_OPTION_DISABLED
) {
Civi::settings()->set('mailing_backend_store', $mailing);
}
Civi::settings()->set('mailing_backend', ['outBound_option' => CRM_Mailing_Config::OUTBOUND_OPTION_DISABLED]);