forked from extern/egroupware
Mail tree W.I.P.: some code cleanup
This commit is contained in:
parent
3d765ac00f
commit
c36449cd6e
@ -267,8 +267,8 @@ class mail_ui
|
|||||||
// triggered from client-side. Also, we keep this here as
|
// triggered from client-side. Also, we keep this here as
|
||||||
$sel_options['foldertree'] = $this->mail_tree->getTree(null,$profileId,1,true);
|
$sel_options['foldertree'] = $this->mail_tree->getTree(null,$profileId,1,true);
|
||||||
|
|
||||||
//Get all subscribed folder
|
//Get all subscribed folders
|
||||||
// as getting all subscribed folder is very fast operation
|
// as getting all subscribed folders is very fast operation
|
||||||
// we can use it to get a comparison base for folders which
|
// we can use it to get a comparison base for folders which
|
||||||
// got subscribed or unsubscribed by the user
|
// got subscribed or unsubscribed by the user
|
||||||
try {
|
try {
|
||||||
@ -302,7 +302,6 @@ class mail_ui
|
|||||||
$namespace_roots[] = $profileId . self::$delimiter . str_replace($namespace['delimiter'], '', $namespace['prefix']);
|
$namespace_roots[] = $profileId . self::$delimiter . str_replace($namespace['delimiter'], '', $namespace['prefix']);
|
||||||
}
|
}
|
||||||
$to_unsubscribe = $to_subscribe = array();
|
$to_unsubscribe = $to_subscribe = array();
|
||||||
//$allFoldersData = $this->mail_bo->getFolderArray(null,false,0);
|
|
||||||
foreach ($content['foldertree'] as $path => $value)
|
foreach ($content['foldertree'] as $path => $value)
|
||||||
{
|
{
|
||||||
list(,$node) = explode($profileId.self::$delimiter, $path);
|
list(,$node) = explode($profileId.self::$delimiter, $path);
|
||||||
@ -357,8 +356,6 @@ class mail_ui
|
|||||||
$parentFolder='INBOX';
|
$parentFolder='INBOX';
|
||||||
$refreshData = array(
|
$refreshData = array(
|
||||||
$profileId => lang($parentFolder),
|
$profileId => lang($parentFolder),
|
||||||
'subscribed' => $to_subscribe,
|
|
||||||
'unsubscribed' => $to_unsubscribe
|
|
||||||
);
|
);
|
||||||
$response = egw_json_response::get();
|
$response = egw_json_response::get();
|
||||||
foreach($refreshData as $folder => &$name)
|
foreach($refreshData as $folder => &$name)
|
||||||
|
Loading…
Reference in New Issue
Block a user