From 4f0004a1579a2739f64402804282d3ec5a243bcd Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 13 Apr 2017 12:57:30 +0200 Subject: [PATCH] Do not request extra folder fetch from mail tree --- mail/inc/class.mail_ui.inc.php | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index f02a4c0b0c..d0603e7fda 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -825,8 +825,8 @@ class mail_ui * * We currently load all folders of a given profile, tree can also load parts of a tree. * - * @param string $_nodeID if of node whos children are requested - * @param boolean $_subscribedOnly flag to tell wether to fetch all or only subscribed (default) + * @param string $_nodeID if of node whose children are requested + * @param boolean $_subscribedOnly flag to tell whether to fetch all or only subscribed (default) */ public function ajax_foldertree($_nodeID = null,$_subscribedOnly=null) { @@ -4368,17 +4368,6 @@ $filter['before']= date("d-M-Y", $cutoffdate2); { $mail_ui = new mail_ui(true); // run constructor } - - // Send full info back in the response - if($getFolders) - { - Api\Translation::add_app('mail'); - - $refreshData = array( - $icServerID => $mail_ui->mail_tree->getTree($icServerID,$icServerID,1,false,!$mail_ui->mail_bo->mailPreferences['showAllFoldersInFolderPane'],!$mail_ui->mail_bo->mailPreferences['showAllFoldersInFolderPane']) - ); - $response->call('app.mail.mail_reloadNode',$refreshData); - } } /**