Skip to content

Commit

Permalink
Reset originalValue when looping through nested fields in a list (f…
Browse files Browse the repository at this point in the history
…ixes #688)
  • Loading branch information
w00fz committed Jul 9, 2016
1 parent 87b045d commit 387030c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ themes/grav/.sass-cache
themes/grav/js/admin.js
themes/grav/js/vendor.js
themes/grav/js/*.map
/.idea
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Prevent external links (like the Preview button) to trigger the "Changes Detected" notice [#689](https://github.com/getgrav/grav-plugin-admin/issues/689)
1. [](#bugfix)
* Fixed an issue that prevented removing more than one page, in the pages listng [#672](https://github.com/getgrav/grav-plugin-admin/issues/672)
* Fixed toggleables in lists that were always loading as checked even when not stored [#688](https://github.com/getgrav/grav-plugin-admin/issues/688)

# v1.1.0-rc.4
## 06/21/2016
Expand Down
1 change: 1 addition & 0 deletions themes/grav/templates/forms/fields/list/list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
with { field: child, value: key }
%}
{% elseif child.type %}
{% set originalValue = childValue %}
{%
include [
"forms/fields/#{child.type}/#{child.type}.html.twig",
Expand Down

0 comments on commit 387030c

Please sign in to comment.