From a7af7a9b81cc1e548773f277bda0d219b3de65fe Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 12 Feb 2016 11:44:42 +0100 Subject: [PATCH] Fix JS error when using tasks filter after task delete (T1005) --- plugins/tasklist/tasklist.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/tasklist/tasklist.js b/plugins/tasklist/tasklist.js index d40c3e90..4d1ac570 100644 --- a/plugins/tasklist/tasklist.js +++ b/plugins/tasklist/tasklist.js @@ -2793,6 +2793,9 @@ function rcube_tasklist_ui(settings) */ function match_filter(rec, cache, recursive) { + if (!rec) + return false; + // return cached result if (typeof cache[rec.id] != 'undefined' && recursive != 2) { return cache[rec.id]; @@ -2832,6 +2835,7 @@ function rcube_tasklist_ui(settings) if (recursive != 1) { cache[rec.id] = match; } + return match; }