(dev/core#2673) Email Tokens - Custom tokens in subject
block similar tokens in body
#21080
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
In an email, a token from an extension in a subject will inhibits the same token group in the email body.
Original ticket and proposed fix here: twomice/com.joineryhq.reltoken#15 and https://lab.civicrm.org/dev/core/-/issues/2673
Before
In an email, if I put a custom token {custom.name} in the subject and another custom token in the email body and then send the email, I will only receive the value of the {custom.name} that's in the subject. The other custom token in the email body will be blank. Example:
In the email, the
{custom.name}
is populated in subject and in body, but tokens{custom.age}
and{custom.gender}
are blank in body, even if they actually have values.After
Tokens in body are correctly populated regardless of which tokens are used in the subject.
Technical Details
See ticket OP for technical analysis.
Comments
[none]