-
-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore contact greeting tokens in scheduled reminders.
CRM-19757. In 4.6, it was possible to use `{contact.email_greeting}` in a scheduled reminder. This was no longer possible in 4.7. * Add tests to ensure greeting tokens are processed in `CRM_Core_BAO_ActionScheduleTest` * Modify `CRM_Core_BAO_ActionScheduleTest` to test additional tokens (limited room in message subject due to 128char DB limit) * Modify function signature of `CRM_Contact_BAO_Contact::create()` to return updated contact. * Better handle case where contact preferred_mail_format is unset in `CRM_Core_BAO_ActionSchedule::sendReminderEmail()` * Ensure greeting tokens are loaded in `CRM_Utils_Token::replaceGreetingTokens()` and `\Civi\Token\TokenCompatSubscriber::onEvaluate()` * Re-order processing of tokens in `\Civi\Token\TokenCompatSubscriber::onRender()` - restores order used in 4.6, allowing greeting tokens which contain contact tokens to be fully processed.
- Loading branch information
1 parent
74f5fbc
commit 08f9b27
Showing
5 changed files
with
46 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters