mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-16 13:03:16 +01:00
Make sure to use correct parent ObjectManager when destroying.
Should fix "Action object with id ... does not exist" errors.
This commit is contained in:
parent
9e0b882f92
commit
15be410487
@ -111,9 +111,10 @@ var et2_DOMWidget = et2_widget.extend(et2_IDOMNode,
|
||||
|
||||
if(this._actionManager)
|
||||
{
|
||||
if(egw_getAppObjectManager(false))
|
||||
var app_om = egw_getObjectManager(this.egw().getAppName(), false,1);
|
||||
if(app_om)
|
||||
{
|
||||
var om = egw_getAppObjectManager(false).getObjectById(this.id);
|
||||
var om = app_om.getObjectById(this.id);
|
||||
if(om) om.remove();
|
||||
}
|
||||
this._actionManager.remove();
|
||||
|
Loading…
Reference in New Issue
Block a user