Replace field tokens by empty strings when there is no field value

Created on 11 January 2016, about 9 years ago
Updated 12 September 2024, 7 months ago

This is a follow up from [2646316-15].

While writing tests, we discovered that field tokens are not replaced by empty strings when the field does not have a value. The this script and its output for a visual example: https://gist.github.com/juampynr/e949f2c20e4ea92b26b1.

So far I can see the following options:

a) Leave the token there.
b) Replace the token by an empty string.

I can see no benefit on leaving the token there. What do the others think?

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇪🇸Spain juampynr

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

Merge Requests

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