When creating a new objectManager, use the actionManager at the matching search depth.

Fixes objectManagers using an actionManager from a different application, and failing.
This commit is contained in:
Nathan Gray 2015-03-18 14:11:18 +00:00
parent 990b9b5fac
commit 1af713097c

View File

@ -91,7 +91,7 @@ function egw_getObjectManager(_id, _create, _search_depth) {
res = egw_globalObjectManager.getObjectById(_id, _search_depth);
if (res == null && _create) {
res = new egwActionObjectManager(_id,
egw_getActionManager(_id));
egw_getActionManager(_id,true,_search_depth));
egw_globalObjectManager.addObject(res);
}
}