Fixed columns and column fields with .dotted variables inside to ignore columns and column names

This commit is contained in:
Matias Griese
2022-04-01 17:25:26 +03:00
parent 22f9c15112
commit 372713a8f1
3 changed files with 3 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
* Added support for a single `field:` vs `fields:` in element form field to store a single value to the option field * Added support for a single `field:` vs `fields:` in element form field to store a single value to the option field
1. [](#bugfix) 1. [](#bugfix)
* Fixed nested element form fields * Fixed nested element form fields
* Fixed `columns` and `column` fields with `.dotted` variables inside to ignore columns and column names
# v1.10.32 # v1.10.32
## 03/28/2022 ## 03/28/2022

View File

@@ -1,7 +1,7 @@
{% extends "forms/field.html.twig" %} {% extends "forms/field.html.twig" %}
{% block field %} {% block field %}
{% embed 'forms/default/fields.html.twig' with {name: field.name, fields: field.fields} %} {% embed 'forms/default/fields.html.twig' with {name: name, fields: field.fields} %}
{% block outer_markup_field_open %}<div class="form-column block pure-u-1-{{ cols }}">{% endblock %} {% block outer_markup_field_open %}<div class="form-column block pure-u-1-{{ cols }}">{% endblock %}
{% block outer_markup_field_close %}</div>{% endblock %} {% block outer_markup_field_close %}</div>{% endblock %}
{% endembed %} {% endembed %}

View File

@@ -3,6 +3,6 @@
{% block field %} {% block field %}
<div class="form-columns grid pure-g"> <div class="form-columns grid pure-g">
{% set cols = field.fields|length %} {% set cols = field.fields|length %}
{% include 'forms/default/fields.html.twig' with {name: field.name, fields: field.fields, fallback_field: 'column', cols: cols} %} {% include 'forms/default/fields.html.twig' with {name: field.name|parent_field, fields: field.fields, fallback_field: 'column', cols: cols} %}
</div> </div>
{% endblock %} {% endblock %}