mirror of
https://github.com/jbcr/core.git
synced 2026-04-02 06:12:15 +02:00
Merge pull request #485 from bolt/hotfix/multi-values-for-select
[Hotfix] Make sure multiple selects keep all values
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
{# Set the value #}
|
||||
{% if not value|default %}
|
||||
{% set value = field.value|default('') %}
|
||||
{% if value is iterable %}
|
||||
{% if value is iterable and field.definition.type != "select" %}
|
||||
{% set value = value|first %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user