grav-plugin-form icon indicating copy to clipboard operation
grav-plugin-form copied to clipboard

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

Open vangogs opened this issue 1 year ago • 0 comments

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

vangogs avatar Dec 24 '24 00:12 vangogs