Skip to content

Commit

Permalink
Merge branch 'release/1.0.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Jan 7, 2016
2 parents 9e96b84 + bd06c41 commit 42c0d15
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v1.0.6
## 01/07/2016

1. [](#bugfix)
* Fix for forms appending `_json` fields on every save

# v1.0.5
## 01/07/2016

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Admin Panel
version: 1.0.5
version: 1.0.6
description: Adds an advanced administration panel to manage your site
icon: empire
author:
Expand Down
8 changes: 5 additions & 3 deletions themes/grav/templates/partials/blueprints.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@

{% if data.extra %}
{% for name, value in data.extra %}
{% set field = {name: '_json.' ~ name} %}
{% set value = value|json_encode|e %}
{% include 'forms/fields/hidden/hidden.html.twig' %}
{% if name not in ['_json','task','admin-nonce'] %}
{% set field = {name: '_json.' ~ name} %}
{% set value = value|json_encode|e %}
{% include 'forms/fields/hidden/hidden.html.twig' %}
{% endif %}
{% endfor %}
{% endif %}

Expand Down

0 comments on commit 42c0d15

Please sign in to comment.