Use cache fast-mode for counting tasks

This commit is contained in:
Aleksander Machniak 2018-12-27 09:23:29 +00:00
parent c9499eeaa6
commit d8180bf560
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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