Don't fail if there are no actions, just initialize to empty array

This commit is contained in:
Nathan Gray 2012-05-29 22:35:33 +00:00
parent d1cee69269
commit c0ae7013a5

View File

@ -117,6 +117,8 @@ var et2_nextmatch_controller = et2_dataview_controller.extend(
// Generate a uid for the action and object manager // Generate a uid for the action and object manager
var uid = this.egw.uid(); var uid = this.egw.uid();
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); var gam = egw_getActionManager(this.egw.appName);
this._actionManager = gam.addAction("actionManager", uid); this._actionManager = gam.addAction("actionManager", uid);