summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-09-08 16:52:06 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-09-08 16:52:06 (GMT)
commit7e6056770ee6c28f33f3f04dead92d5a689deaa0 (patch)
treed1c43513ec970a9c2c37d10dcef4583215ae8afb
parent80a4dc75fd2a97a5701df54c292448b075ce64c4 (diff)
downloadroundcubemail-plugins-kolab-7e6056770ee6c28f33f3f04dead92d5a689deaa0.tar.gz
Don't list all task list on empty search results
-rw-r--r--plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php b/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php
index 253cb62..d757cb7 100644
--- a/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php
+++ b/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php
@@ -30,6 +30,7 @@ class tasklist_kolab_driver extends tasklist_driver
public $attendees = true;
public $undelete = false; // task undelete action
public $alarm_types = array('DISPLAY','AUDIO');
+ public $search_more_results;
private $rc;
private $plugin;
@@ -153,7 +154,7 @@ class tasklist_kolab_driver extends tasklist_driver
public function get_lists(&$tree = null)
{
// attempt to create a default list for this user
- if (empty($this->lists)) {
+ if (empty($this->lists) && !isset($this->search_more_results)) {
$prop = array('name' => 'Tasks', 'color' => '0000CC', 'default' => true);
if ($this->create_list($prop))
$this->_read_lists(true);