[UI] Fix 'hide_attachments is not defined' error

This commit is contained in:
Hugo Sales 2021-04-28 21:50:55 +00:00
parent 436528172c
commit 4f6f1941da
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
{% include '/'~ other.name ~ '/view.html.twig' with {'vars': other.vars} only %}
{% endfor %}
</div>
{% if hide_attachments is not defined and hide_attachments != true %}
{% if hide_attachments is not defined %}
<div class="note-attachments">
{% for attachment in note.getAttachments() %}
{% include '/attachments/view.html.twig' with {'attachment': attachment} %}