From c4f9e58e8dfb40d7f3a9b026380a7e701b32246c Mon Sep 17 00:00:00 2001 From: Eliseu Amaro Date: Tue, 18 Jan 2022 00:58:25 +0000 Subject: [PATCH] [COMPONENTS][Attachment] Fixed typo on attachmentShowWithNote, where the template called was somehow replaced with a child of it --- components/Attachment/Controller/Attachment.php | 2 +- templates/cards/attachments/show.html.twig | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/components/Attachment/Controller/Attachment.php b/components/Attachment/Controller/Attachment.php index 36a75a9ba1..3e363bc9b8 100644 --- a/components/Attachment/Controller/Attachment.php +++ b/components/Attachment/Controller/Attachment.php @@ -89,7 +89,7 @@ class Attachment extends Controller try { return $this->attachment($attachment_id, $note_id, function ($res) use ($note_id, $attachment_id) { return [ - '_template' => '/cards/attachments/view.html.twig', + '_template' => '/cards/attachments/show.html.twig', 'download' => $res['attachment']->getDownloadUrl(note: $note_id), 'title' => $res['title'], 'attachment' => $res['attachment'], diff --git a/templates/cards/attachments/show.html.twig b/templates/cards/attachments/show.html.twig index 95f63b04bb..a2e1e8a674 100644 --- a/templates/cards/attachments/show.html.twig +++ b/templates/cards/attachments/show.html.twig @@ -3,11 +3,8 @@ {% block body %}
- {% include '/cards/attachments/view.html.twig' with {'attachment': attachment, 'note': note, 'title': title} only %} - {{ 'Download link' | trans }}
-
{% endblock body %} \ No newline at end of file