From 4f6f1941da1437cc7c3af0a8e4f16a6debf008df Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Wed, 28 Apr 2021 21:50:55 +0000 Subject: [PATCH] [UI] Fix 'hide_attachments is not defined' error --- templates/note/view.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/note/view.html.twig b/templates/note/view.html.twig index a7726bb49d..e058f7a3a1 100644 --- a/templates/note/view.html.twig +++ b/templates/note/view.html.twig @@ -21,7 +21,7 @@ {% include '/'~ other.name ~ '/view.html.twig' with {'vars': other.vars} only %} {% endfor %} - {% if hide_attachments is not defined and hide_attachments != true %} + {% if hide_attachments is not defined %}
{% for attachment in note.getAttachments() %} {% include '/attachments/view.html.twig' with {'attachment': attachment} %}