From 4cd8de2f1c5080685f0a2de9f5294f51ec4eb92f Mon Sep 17 00:00:00 2001
From: Thibault Dockx <thibault.dockx@fusiondirectory.org>
Date: Tue, 3 May 2022 13:25:56 +0100
Subject: [PATCH] :sparkles: Feat(MailTemplate) Adds mail attachment

Mail Attachment is now being processed properly.
Upload and download are available
---
 plugins/addons/mailtemplate/class_mailTemplate.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/addons/mailtemplate/class_mailTemplate.inc b/plugins/addons/mailtemplate/class_mailTemplate.inc
index 21cd65f15..7010fddf4 100644
--- a/plugins/addons/mailtemplate/class_mailTemplate.inc
+++ b/plugins/addons/mailtemplate/class_mailTemplate.inc
@@ -63,9 +63,9 @@ class mailTemplate extends simplePlugin
           _('Mail Signature'), _('Mail Signature'),
           'fdMailTemplateSignature', FALSE
         ),
-        new FileAttribute(
+        new FileDownloadAttribute(
           _('Attachment'), _('Import a file for this e-mail'),
-          'fdMailTemplateAttachment', FALSE
+          'fdMailTemplateAttachment', FALSE, '', TRUE
         ),
         new BooleanAttribute(
           _('Read Receipt'),
-- 
GitLab