From 7833daa21903f2e065f664fd8eee25b76f24dce5 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 13 Nov 2017 14:36:35 +0100 Subject: [PATCH] * Mail: Fix missing SaveAll and DownloadAsZip actions of attachments --- mail/inc/class.mail_ui.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index cc483c4159..97f03765fb 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -2477,6 +2477,12 @@ $filter['before']= date("d-M-Y", $cutoffdate2); 'smime_type' => $value['smime_type'] ); $attachmentHTML[$key]['link_save'] ="".Api\Html::image('mail','fileexport').""; + // add save-all and download zip icon for first attachment only + // if more than one attachments. + if ($key == 0 && count($attachments) > 1) + { + $attachmentHTML[$key]['classSaveAllPossiblyDisabled'] = ""; + } } $attachmentHTMLBlock=""; foreach ((array)$attachmentHTML as $row)