Use cache fast-mode for counting tasks
This commit is contained in:
parent
c9499eeaa6
commit
d8180bf560
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@
|
|||
class kolab_storage_cache_task extends kolab_storage_cache
|
||||
{
|
||||
protected $extra_cols = array('dtstart', 'dtend');
|
||||
protected $data_props = array('categories', 'status'); // start, due
|
||||
protected $data_props = array('categories', 'status', 'complete', 'start', 'due');
|
||||
|
||||
/**
|
||||
* Helper method to convert the given Kolab object into a dataset to be written to cache
|
||||
|
|
|
@ -587,7 +587,7 @@ class tasklist_kolab_driver extends tasklist_driver
|
|||
continue;
|
||||
}
|
||||
|
||||
foreach ($folder->select(array(array('tags','!~','x-complete'))) as $record) {
|
||||
foreach ($folder->select(array(array('tags','!~','x-complete')), true) as $record) {
|
||||
$rec = $this->_to_rcube_task($record, $list_id, false);
|
||||
|
||||
if ($this->is_complete($rec)) // don't count complete tasks
|
||||
|
|
Loading…
Add table
Reference in a new issue