Fix JS error when using tasks filter after task delete (T1005)
This commit is contained in:
parent
81ffe68df5
commit
a7af7a9b81
1 changed files with 4 additions and 0 deletions
|
@ -2793,6 +2793,9 @@ function rcube_tasklist_ui(settings)
|
||||||
*/
|
*/
|
||||||
function match_filter(rec, cache, recursive)
|
function match_filter(rec, cache, recursive)
|
||||||
{
|
{
|
||||||
|
if (!rec)
|
||||||
|
return false;
|
||||||
|
|
||||||
// return cached result
|
// return cached result
|
||||||
if (typeof cache[rec.id] != 'undefined' && recursive != 2) {
|
if (typeof cache[rec.id] != 'undefined' && recursive != 2) {
|
||||||
return cache[rec.id];
|
return cache[rec.id];
|
||||||
|
@ -2832,6 +2835,7 @@ function rcube_tasklist_ui(settings)
|
||||||
if (recursive != 1) {
|
if (recursive != 1) {
|
||||||
cache[rec.id] = match;
|
cache[rec.id] = match;
|
||||||
}
|
}
|
||||||
|
|
||||||
return match;
|
return match;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue