mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-18 04:31:06 +01:00
fix javascript error caused by caching using a string context, searching now for a nextmatch one
This commit is contained in:
parent
24136c11d6
commit
bae72d8734
@ -811,9 +811,22 @@ egw.extend("data_storage", egw.MODULE_GLOBAL, function (_app, _wnd) {
|
|||||||
};
|
};
|
||||||
uid = uid.join("::");
|
uid = uid.join("::");
|
||||||
|
|
||||||
|
// find filters, even if context is not always from nextmatch, eg. caching uses it's a string context
|
||||||
|
var filters = {};
|
||||||
|
for(var i=0; i < registeredCallbacks[_uid].length; i++)
|
||||||
|
{
|
||||||
|
var callback = registeredCallbacks[_uid][i];
|
||||||
|
if (typeof callback.context == 'object' &&
|
||||||
|
typeof callback.context.self == 'object' &&
|
||||||
|
typeof callback.context.self._filters == 'object')
|
||||||
|
{
|
||||||
|
filters = callback.context.self._filters;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// need to send nextmatch filters too, as server-side will merge old version from request otherwise
|
// need to send nextmatch filters too, as server-side will merge old version from request otherwise
|
||||||
this.dataFetch(_execId, {'refresh':uid}, registeredCallbacks[_uid][0].context.self._filters || {},
|
this.dataFetch(_execId, {'refresh':uid}, filters, nextmatchId, false, context, [uid]);
|
||||||
nextmatchId, false, context, [uid]);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user