This task list cache might not exist yet.
authorJan Schneider <jan@horde.org>
Mon, 21 Jun 2010 21:09:23 +0000 (23:09 +0200)
committerJan Schneider <jan@horde.org>
Mon, 21 Jun 2010 21:36:57 +0000 (23:36 +0200)
kronolith/js/kronolith.js

index 0b0bbdd..a1c5832 100644 (file)
@@ -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.