Don't write session data when fetching events/tasks
This commit is contained in:
parent
6c0985dfe9
commit
95491f0886
4 changed files with 13 additions and 1 deletions
|
@ -302,6 +302,9 @@ class kolab_calendar extends kolab_storage_folder_api
|
|||
}
|
||||
}
|
||||
|
||||
// avoid session race conditions that will loose temporary subscriptions
|
||||
$this->cal->rc->session->nowrite();
|
||||
|
||||
return $events;
|
||||
}
|
||||
|
||||
|
|
|
@ -222,6 +222,9 @@ class kolab_user_calendar extends kolab_calendar
|
|||
}
|
||||
}
|
||||
|
||||
// avoid session race conditions that will loose temporary subscriptions
|
||||
$this->cal->rc->session->nowrite();
|
||||
|
||||
return $events;
|
||||
}
|
||||
|
||||
|
|
|
@ -481,6 +481,9 @@ class tasklist_kolab_driver extends tasklist_driver
|
|||
}
|
||||
}
|
||||
|
||||
// avoid session race conditions that will loose temporary subscriptions
|
||||
$this->plugin->rc->session->nowrite();
|
||||
|
||||
return $counts;
|
||||
}
|
||||
|
||||
|
@ -537,6 +540,9 @@ class tasklist_kolab_driver extends tasklist_driver
|
|||
}
|
||||
}
|
||||
|
||||
// avoid session race conditions that will loose temporary subscriptions
|
||||
$this->plugin->rc->session->nowrite();
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@ function rcube_tasklist_ui(settings)
|
|||
var prop = { id:p.id, active:list.active?1:0 };
|
||||
if (list.subscribed) prop.permanent = 1;
|
||||
rcmail.http_post('tasklist', { action:'subscribe', l:prop });
|
||||
setTimeout(function(){ list_tasks(); }, 500);
|
||||
list_tasks();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue