Skip to content

Commit

Permalink
Merge branch 'release/2.9.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Sep 14, 2017
2 parents e47ad77 + 66ebcdd commit 7dc8da4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v2.9.1
## 09/14/2017

1. [](#bugfix)
* Fixed backwards compatibility issue with conditional field [#188](https://github.com/getgrav/grav-plugin-form/pull/188)

# v2.9.0
## 09/07/2017

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: Form
version: 2.9.0
version: 2.9.1
description: Enables the forms handling
icon: check-square
author:
Expand Down
4 changes: 3 additions & 1 deletion templates/forms/fields/conditional/conditional.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% set value = evaluate(field.condition) %}
{% if value == true or value == 'true' %}
{% set value = value == 'true' ? 1 : value %}
{% set value = value == 'false' ? 0 : value %}

{% if value %}
{% if field.classes %}
<div class="{{ field.classes }}">
{% endif %}
Expand Down

0 comments on commit 7dc8da4

Please sign in to comment.