mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-26 07:46:31 +01:00
Fix: Unique originalValue for fields of fieldset (#2218)
Prevent fields from being toggled incorrectly by adding originalValue to childs of fieldset. Co-authored-by: Mark Schmale <mail@markschmale.de>
This commit is contained in:
@@ -70,6 +70,9 @@
|
||||
{% endif %}
|
||||
|
||||
{% set field_templates = include_form_field(child.type, field_layout, default_layout) %}
|
||||
{% if default_layout != 'key' %}
|
||||
{% set originalValue = child_value %}
|
||||
{% endif %}
|
||||
{% include field_templates with { field: child, value: child_value } %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user