-
Notifications
You must be signed in to change notification settings - Fork 22
(mosaico#247) (dev/core#588) Apply prefix to subject of test mailings #28
Conversation
This is was previously fixed in civicrm/civicrm-core#12758, but that fix had a couple undesired side-effect: * For non-Mosaico mailings, the prefix would be applied twice (https://lab.civicrm.org/dev/core/issues/588); once in the JS layer and once in the BAO delivery engine. * The saved value of the `subject` would temporarily store the prefix as part of the subject. (In normal usage, it would be fixed later by an autosave; but there could be edge-cases/races.) This is an alternative fix which makes flexmailer more precisely imitate the behavior in the BAO delivery engine. Note: If one doesn't like this behavior, then you can disable or replace the service, e.g. ```php Civi::service('civi_flexmailer_test_prefix')->setActive(FALSE); ```
I've
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good
<?php | ||
/* | ||
+--------------------------------------------------------------------+ | ||
| CiviCRM version 4.7 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@totten nitpcik this should be civicrm 5 and copyright to 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup. The copyright header should be changed. I'm inclined to do that a separate PR with a global search/replace.
@totten i have merged the other PR so i think this is good now |
/test |
Thanks, @seamuslee001. Tests have passed here. Merging. |
This is was previously fixed in civicrm/civicrm-core#12758, but that fix had a
couple undesired side-effect:
once in the JS layer and once in the BAO delivery engine.
subject
would temporarily store the prefix as part of the subject.(In normal usage, it would be fixed later by an autosave; but there could be edge-cases/races.)
This is an alternative fix which makes flexmailer more precisely imitate the
behavior in the BAO delivery engine.
Note: If one doesn't like this behavior, then you can disable or replace the service, e.g.