Fixed list field with key/value pairs throwing an exception due to bad value [#2199]

This commit is contained in:
Matias Griese
2022-02-07 11:10:07 +02:00
parent 9f9198b329
commit 0a815f6115
2 changed files with 2 additions and 1 deletions

View File

@@ -18,6 +18,7 @@
* Prevent fields from being toggled incorrectly by adding originalValue to childs of fieldset. [#2218](https://github.com/getgrav/grav-plugin-admin/pull/2218)
* Fixed persistent focus on Folder field when Adding page (Safari) [#2209](https://github.com/getgrav/grav-plugin-admin/issues/2209)
* Fixed performance of Plugins / Themes sort in the installation table
* Fixed list field with key/value pairs throwing an exception due to bad value [#2199](https://github.com/getgrav/grav-plugin-admin/issues/2199)
# v1.10.29
## 01/28/2022

View File

@@ -87,7 +87,7 @@
{% elseif child.name == 'value' %}
{# Special handling for the value field #}
{% set child = child|merge({ name: item_name }) %}
{% set child_value = value %}
{% set child_value = val %}
{% else %}
{% set child_value = form ? form.value(child.name) : data.value(child.name) %}
{% endif %}