Skip to content
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

Iterable text fields are displayed incorrectly in flex-object list view #606

Open
vangogs opened this issue Dec 24, 2024 · 0 comments
Open

Comments

@vangogs
Copy link

vangogs commented Dec 24, 2024

Iterable text fields are displayed incorrectly in flex-object list view:
e.g.:
["Value1","Value2"]

Iterable text fields in flex-object list view are rendered from template
[templates/forms/fields/text/edit_list.html.twig]

There are bug in statement introduced in commit
{% set value = iterable ? value|join(', ') : value|string %}

As per my understanding value is iterable ? must be used instead of iterable ? because there are no iterable variable in twig context

To make it work, I am using following statement:
{% set value = (value is iterable) ? value|map(item=>item|string)|join(', ') : value|string %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant