Limit virtual folder tree to task/calendar main views
This commit is contained in:
parent
ef1bf946da
commit
e40d1c4dcd
2 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ class kolab_driver extends calendar_driver
|
||||||
$calendars = $names = array();
|
$calendars = $names = array();
|
||||||
|
|
||||||
// include virtual folders for a full folder tree
|
// 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());
|
$folders = $this->_folder_hierarchy($folders, $this->rc->get_storage()->get_hierarchy_delimiter());
|
||||||
|
|
||||||
foreach ($folders as $id => $cal) {
|
foreach ($folders as $id => $cal) {
|
||||||
|
|
|
@ -84,7 +84,7 @@ class tasklist_kolab_driver extends tasklist_driver
|
||||||
$listnames = array();
|
$listnames = array();
|
||||||
|
|
||||||
// include virtual folders for a full folder tree
|
// 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);
|
$folders = $this->_folder_hierarchy($folders, $delim);
|
||||||
|
|
||||||
foreach ($folders as $folder) {
|
foreach ($folders as $folder) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue