mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 13:58:36 +01:00
when nextmatch queries children, querying controller has no filters, so we have to use the ones from its parent
This commit is contained in:
parent
f243e8fe31
commit
6fe1d935d4
@ -421,12 +421,19 @@ var et2_nextmatch_controller = et2_dataview_controller.extend(et2_IDataProvider,
|
|||||||
_queriedRange["parent_id"] = this._parentId;
|
_queriedRange["parent_id"] = this._parentId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// sub-levels dont have there own _filters object, need to use the one from parent (or it's parents parent)
|
||||||
|
var obj = this;
|
||||||
|
while((typeof obj._filters == 'undefined' || jQuery.isEmptyObject(obj._filters)) && obj._parentController)
|
||||||
|
{
|
||||||
|
obj = obj._parentController;
|
||||||
|
}
|
||||||
|
|
||||||
// Pass the fetch call to the API, multiplex the data about the
|
// Pass the fetch call to the API, multiplex the data about the
|
||||||
// nextmatch instance into the call.
|
// nextmatch instance into the call.
|
||||||
this.egw.dataFetch(
|
this.egw.dataFetch(
|
||||||
this._widget.getInstanceManager().etemplate_exec_id || this._execId,
|
this._widget.getInstanceManager().etemplate_exec_id || this._execId,
|
||||||
_queriedRange,
|
_queriedRange,
|
||||||
this._filters,
|
obj._filters,
|
||||||
this._widgetId,
|
this._widgetId,
|
||||||
_callback,
|
_callback,
|
||||||
_context);
|
_context);
|
||||||
|
Loading…
Reference in New Issue
Block a user