From b6d673f98ab70ae909823893a3b207c12a27ba79 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 bca7aa042c..8020350eb4 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)