mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Mail tree phase2:
- Fix mail tree gets stalled after adding new account
This commit is contained in:
parent
949ea0c000
commit
40e0a2b705
@ -766,7 +766,16 @@ class mail_ui
|
||||
|
||||
if (!empty($_folderName)) $fetchCounters = true;
|
||||
|
||||
$data = $this->mail_tree->getTree($nodeID,$_profileID,0, false,$subscribedOnly,!$this->mail_bo->mailPreferences['showAllFoldersInFolderPane']);
|
||||
// Check if it is called for refresh root
|
||||
// then we need to reinitialized the index tree
|
||||
if(!$nodeID && !$_profileID)
|
||||
{
|
||||
$data = $this->mail_tree->getInitialIndexTree(null,null,null,null,true,!$this->mail_bo->mailPreferences['showAllFoldersInFolderPane']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$data = $this->mail_tree->getTree($nodeID,$_profileID,0, false,$subscribedOnly,!$this->mail_bo->mailPreferences['showAllFoldersInFolderPane']);
|
||||
}
|
||||
if (!is_null($_nodeID)) return $data;
|
||||
etemplate_widget_tree::send_quote_json($data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user