To work around a bug in action system we call global actionManger of an application NOT just appname, but prefix it with "__"

This commit is contained in:
Ralf Becker 2014-01-17 16:18:12 +00:00
parent bb07598beb
commit da60fe1228

View File

@ -127,9 +127,14 @@ var et2_nextmatch_controller = et2_dataview_controller.extend(et2_IDataProvider,
if(_actions == null) _actions = []; if(_actions == null) _actions = [];
// Initialize the action manager and add some actions to it // Initialize the action manager and add some actions to it
var gam = egw_getActionManager(this.egw.appName); // To work around a bug in action system we call global actionManger
// of an application NOT just appname, but prefix it with "__"
// If it is called just appname, actionLinks of actions with id
// of an application fetch that applications menu as children,
// if that applications tab is open in toplevel window.
var gam = egw_getActionManager('__'+this.egw.appName);
this._actionManager = gam.addAction("actionManager", uid); this._actionManager = gam.addAction("actionManager", uid);
this._actionManager.updateActions(_actions); this._actionManager.updateActions(_actions, this.egw.appName);
var data = this._actionManager.data; var data = this._actionManager.data;
if (data == 'undefined' || !data) if (data == 'undefined' || !data)
{ {