[COMPONENTS][Attachment] Fixed typo on attachmentShowWithNote, where the template called was somehow replaced with a child of it

This commit is contained in:
2022-01-18 00:58:25 +00:00
committed by Hugo Sales
parent 6ab740d780
commit c4f9e58e8d
2 changed files with 1 additions and 4 deletions

View File

@@ -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'],