Fix JS error when using tasks filter after task delete (T1005)

This commit is contained in:
Aleksander Machniak 2016-02-12 11:44:42 +01:00
parent 81ffe68df5
commit a7af7a9b81

View file

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