Skip to content

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

@vangogs

Description

@vangogs

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 %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions