Tokens are visible in email text if corresponding field is empty

Created on 29 October 2018, almost 6 years ago
Updated 21 March 2023, over 1 year ago

If a field that corresponds to a token used in a notification text, is empty in the given entity, the token itself [field_...] is displayed in the email text. Instead nothing should be displayed, if the corresponding field is empty. A possible solution may follow this patch for Business Rules Module :

"All we need to do is to include one more parameter on token replacement call. It will gonna be something like that:

$setting[$key] = $this->util->token->replace($value, $context, ['clear' => TRUE]);"

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany Publishing Future Ammerbuch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024