From: Jan Schneider Date: Mon, 21 Jun 2010 21:09:23 +0000 (+0200) Subject: This task list cache might not exist yet. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ccf9e84ddfa3e240d7ffdf5d4638084cad8f3756;p=horde.git This task list cache might not exist yet. --- diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 0b0bbddf3..a1c583293 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -2407,7 +2407,9 @@ KronolithCore = { } task.cp = !task.cp; - this.tcache.get(task.cp ? 'complete' : 'incomplete').get(tasklist).set(taskid, task); + if (this.tcache.get(task.cp ? 'complete' : 'incomplete')) { + this.tcache.get(task.cp ? 'complete' : 'incomplete').get(tasklist).set(taskid, task); + } this.tcache.get(task.cp ? 'incomplete' : 'complete').get(tasklist).unset(taskid); // Remove row if necessary.