Limit virtual folder tree to task/calendar main views

This commit is contained in:
Thomas Bruederli 2013-10-15 10:31:52 +02:00
parent ef1bf946da
commit e40d1c4dcd
2 changed files with 2 additions and 2 deletions

View file

@ -109,7 +109,7 @@ class kolab_driver extends calendar_driver
$calendars = $names = array();
// include virtual folders for a full folder tree
if (!$active && !$personal && !$this->rc->output->ajax_call)
if (!$active && !$personal && !$this->rc->output->ajax_call && in_array($this->rc->action, array('index','')))
$folders = $this->_folder_hierarchy($folders, $this->rc->get_storage()->get_hierarchy_delimiter());
foreach ($folders as $id => $cal) {

View file

@ -84,7 +84,7 @@ class tasklist_kolab_driver extends tasklist_driver
$listnames = array();
// include virtual folders for a full folder tree
if (!$this->rc->output->ajax_call)
if (!$this->rc->output->ajax_call && in_array($this->rc->action, array('index','')))
$folders = $this->_folder_hierarchy($folders, $delim);
foreach ($folders as $folder) {