Details
-
Type: Bug
-
Status: Open
-
Priority: Trivial
-
Resolution: Unresolved
-
Affects Version/s: 4.7.27
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:User and Admin Doc
-
Funding Source:Needs Funding
-
Verified?:No
Description
While updating the documentation for the Environment setting, I found a few issues that could be polished:
- If you set the Environment variable via `civicrm.settings.php`, outbound mail is not disabled. This is going to give a nasty surprise to someone. The guts of the `onChangeEnvironmentSetting` method should be extracted, and called when the Outbound Email page is loaded and before mail is sent.
- Only `job.process_mailing` returns an error when the Environment is set to non-production. All scheduled jobs should return an error.