Merge branch 'develop' of github.com:getgrav/grav-plugin-admin into 1.10

 Conflicts:
	CHANGELOG.md
This commit is contained in:
Matias Griese
2019-09-17 21:59:57 +03:00
2 changed files with 7 additions and 1 deletions

View File

@@ -87,6 +87,12 @@
1. [](#bugfix)
* Fixed admin caching issues
# v1.9.10
## mm/dd/2019
1. [](#bugfix)
* Fixed `Badly encoded JSON data` warning when uploading files [grav#2663](https://github.com/getgrav/grav/issues/2663)
# v1.9.9
## 08/21/2019

View File

@@ -107,7 +107,7 @@
{% for path, file in value %}
{{ macro.preview(path, file, _context) }}
{% endfor %}
{% include 'forms/fields/hidden/hidden.html.twig' with {field: {name: '_json.' ~ field.name}, value: value|json_encode} %}
{% include 'forms/fields/hidden/hidden.html.twig' with {field: {name: '_json.' ~ field.name}, value: (value ?? [])|json_encode} %}
</div>
{% else %}