From c063eb10a701030b101ff6191945d6296df6e178 Mon Sep 17 00:00:00 2001
From: Damien <damien.burel@maarch.org>
Date: Fri, 7 Dec 2018 17:16:42 +0100
Subject: [PATCH] FIX #9037 Fix checked attachments

---
 modules/sendmail/mail_form.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/sendmail/mail_form.php b/modules/sendmail/mail_form.php
index d9b91a21451..dc34ba2c25c 100755
--- a/modules/sendmail/mail_form.php
+++ b/modules/sendmail/mail_form.php
@@ -818,6 +818,7 @@ if ($mode == 'add') {
                             .'" title="'.$description
                             .'"><input style="margin-left: 3px" type="checkbox" id="join_attachment_'.$id.'" name="'.$inputName.'"';
 
+                        $checked = '';
                         if (($isVersion && in_array($id, $emailArray['attachments_version'])) || (!$isVersion && in_array($id, $emailArray['attachments']))) {
                             $checked = ' checked="checked"';
                         }
-- 
GitLab