From 48c3a39b0e10f8acbb7c43a49525f5e97962ff8c Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 9 Sep 2015 14:10:43 +0000 Subject: [PATCH] If actionLinks is not set, set it to empty. Fixes error caused by no actions. --- etemplate/js/et2_extension_nextmatch_controller.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etemplate/js/et2_extension_nextmatch_controller.js b/etemplate/js/et2_extension_nextmatch_controller.js index 8e6b0f825d..0559bf06a7 100644 --- a/etemplate/js/et2_extension_nextmatch_controller.js +++ b/etemplate/js/et2_extension_nextmatch_controller.js @@ -332,6 +332,11 @@ var et2_nextmatch_controller = et2_dataview_controller.extend(et2_IDataProvider, var drop_action = mgr.getActionById('egw_link_drop'); var drag_action = mgr.getActionById('egw_link_drag'); + + if(!this._actionLinks) + { + this._actionLinks = []; + } // Check if this app supports linking if(!egw.link_get_registry(this.dataStorePrefix || this.egw.appName, 'query') ||