-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Token in field descriptions not working unless in fields that handle multiple values #6196
Comments
A PR is available for testing and review. BTW, another option would be to remove the token browser from fields, that use the multi-value form, but that doesn't seem logical to me. 😉 |
@indigoxela thank you for providing this PR. It doesn't fix all situations. If you add an image field with single cardinality, the token is still not replaced. |
The issue is in |
@argiepiano seems like our brains are perfectly in sync. 😆 I just came to the same conclusion and pushed another commit to fix single value image fields. |
In the meantime I've found that Paragraphs has the same problem in |
Tested and reviews, RTBC! |
Thank you @indigoxela and @argiepiano -- merged into |
Description of the bug
Tokens in field descriptions (on node form) aren't replaced in several field types.
Steps To Reproduce
Actual behavior
The tokens are there plain text, no replacement, unless it's a field widget that handles multiple values, like the file or image field.
Expected behavior
As the token browser is available, I'd also expect the tokens to get replaced.
Additional information
The token handling came into core with #480, but the only place function token_replace() is used is here, which means, only when some conditions are met. NOT in field_multiple_value_form(), which runs on most field types.
The text was updated successfully, but these errors were encountered: