Merge branch 'release/1.10.18'

This commit is contained in:
Andy Miller
2021-07-19 12:10:50 -06:00
3 changed files with 14 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
# v1.10.18
## 07/19/2021
1. [](#improved)
* Add logic to allow fieldset form field inside a list field [#2159](https://github.com/getgrav/grav-plugin-admin/pull/2159)
# v1.10.17
## 06/15/2021

View File

@@ -1,7 +1,7 @@
name: Admin Panel
slug: admin
type: plugin
version: 1.10.17
version: 1.10.18
description: Adds an advanced administration panel to manage your site
icon: empire
author:

View File

@@ -105,11 +105,17 @@
%}
{% elseif child.type %}
{% set originalValue = childValue %}
{% set templateData = { field: child, value: childValue } %}
{% if child.type == 'fieldset' %}
{% set templateData = templateData|merge({val: childValue}) %}
{% endif %}
{%
include [
"forms/fields/#{child.type}/#{child.type}.html.twig",
'forms/fields/text/text.html.twig'
] with { field: child, value: childValue }
] with templateData
%}
{% endif %}
{% endfor %}