From 85a9655cb8ee092c0ccd0ecb2d228d509bfa6582 Mon Sep 17 00:00:00 2001 From: Damien Burel <damien.burel@maarch.org> Date: Mon, 24 Apr 2017 14:25:57 +0200 Subject: [PATCH] [FEAT] #5427 Do not check attachments when del --- modules/sendmail/js/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sendmail/js/functions.js b/modules/sendmail/js/functions.js index 2a1f7b20d0d..d83b27c9fb2 100644 --- a/modules/sendmail/js/functions.js +++ b/modules/sendmail/js/functions.js @@ -136,7 +136,7 @@ function validEmailForm (path, form_id) { var attachments = $j("#joined_files input.check"); - if (attachments.length > 0 && !path.includes("for=save")) { + if (attachments.length > 0 && path.includes("for=send")) { var hasOneChecked = false; for (var i = 0; i < attachments.length; i++) { if (attachments[i].checked == true) { -- GitLab