From c0ae7013a5956c773bbaf650d77fbf95e0a65c9e Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 29 May 2012 22:35:33 +0000 Subject: [PATCH] Don't fail if there are no actions, just initialize to empty array --- etemplate/js/et2_extension_nextmatch_controller.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etemplate/js/et2_extension_nextmatch_controller.js b/etemplate/js/et2_extension_nextmatch_controller.js index 4b60afaf20..a8379a3cec 100644 --- a/etemplate/js/et2_extension_nextmatch_controller.js +++ b/etemplate/js/et2_extension_nextmatch_controller.js @@ -117,6 +117,8 @@ var et2_nextmatch_controller = et2_dataview_controller.extend( // Generate a uid for the action and object manager var uid = this.egw.uid(); + if(_actions == null) _actions = []; + // Initialize the action manager and add some actions to it var gam = egw_getActionManager(this.egw.appName); this._actionManager = gam.addAction("actionManager", uid);