Don't list all task list on empty search results
This commit is contained in:
parent
80a4dc75fd
commit
7e6056770e
1 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@ class tasklist_kolab_driver extends tasklist_driver
|
||||||
public $attendees = true;
|
public $attendees = true;
|
||||||
public $undelete = false; // task undelete action
|
public $undelete = false; // task undelete action
|
||||||
public $alarm_types = array('DISPLAY','AUDIO');
|
public $alarm_types = array('DISPLAY','AUDIO');
|
||||||
|
public $search_more_results;
|
||||||
|
|
||||||
private $rc;
|
private $rc;
|
||||||
private $plugin;
|
private $plugin;
|
||||||
|
@ -153,7 +154,7 @@ class tasklist_kolab_driver extends tasklist_driver
|
||||||
public function get_lists(&$tree = null)
|
public function get_lists(&$tree = null)
|
||||||
{
|
{
|
||||||
// attempt to create a default list for this user
|
// 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);
|
$prop = array('name' => 'Tasks', 'color' => '0000CC', 'default' => true);
|
||||||
if ($this->create_list($prop))
|
if ($this->create_list($prop))
|
||||||
$this->_read_lists(true);
|
$this->_read_lists(true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue