Skip to content

Commit

Permalink
Fixed regression `Argument 4 passed to Grav\Plugin\Form\TwigExtension…
Browse files Browse the repository at this point in the history
…::prepareFormField() must be of the type array` [#2177]
  • Loading branch information
mahagr committed Sep 1, 2021
1 parent af8f6ab commit 2f9b0a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,9 @@
# v1.10.20
## 08/31/2021

3. [](#bugfix)
* Fixed regression `Argument 4 passed to Grav\Plugin\Form\TwigExtension::prepareFormField() must be of the type array` [#2177](https://github.com/getgrav/grav-plugin-admin/issues/2177)

# v1.10.19
## 08/31/2021

Expand Down
Expand Up @@ -54,7 +54,7 @@

{% if field.fields %}
{% for child_name, child in field.fields %}
{% set child = prepare_form_field(child, child_name, field.name, key) %}
{% set child = prepare_form_field(child, child_name, field.name, {key: key}) %}
{% if child %}
{% set default_layout = 'text' %}
{% if child.type == 'key' or child.key == true %}
Expand Down

0 comments on commit 2f9b0a1

Please sign in to comment.