Merge pull request #3573 from shulard/fix/unknown-withremove-variable

Fix error when withRemove variable is not defined.
This commit is contained in:
Jérémy Benoist 2018-02-24 21:52:56 +01:00 committed by GitHub
commit 228d317204
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
{% for tag in tags %}
<li class="chip">
<a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a>
{% if withRemove %}
{% if withRemove is defined and withRemove == true %}
<a href="{{ path('remove_tag', { 'entry': entryId, 'tag': tag.id }) }}" onclick="return confirm('{{ 'entry.confirm.delete_tag'|trans|escape('js') }}')">
<i class="material-icons vertical-align-middle">delete</i>
</a>