Skip to content

Commit

Permalink
Explicitly type-cast bools in Twig
Browse files Browse the repository at this point in the history
  • Loading branch information
bobdenotter committed Jan 15, 2019
1 parent 0a6f871 commit 40e3136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/content/_taxonomies.html.twig
Expand Up @@ -17,8 +17,8 @@
:name="'taxonomy[{{ definition.slug }}]'"
:id="'taxonomy-{{ definition.slug }}'"
:options="{{ options|json_encode() }}"
:multiple="{{ definition.multiple }}"
:taggable="{{ (definition.behaves_like == 'tags') }}"
:multiple="{{ definition.multiple ? 'true' : 'false' }}"
:taggable="{{ (definition.behaves_like == 'tags') ? 'true' : 'false' }}"
></editor-select>

{# (Current saved value: <code>{{ value|json_encode() }}</code> ) #}
Expand Down

0 comments on commit 40e3136

Please sign in to comment.