From b179734df820c62bddebb7c30cb059e83d3f9bd2 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 3 Sep 2014 06:59:26 +0000 Subject: [PATCH] Prevent additional objectManagers. Fixes separate selection problem with right clicks on sub-grids. --- etemplate/js/et2_extension_nextmatch_controller.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etemplate/js/et2_extension_nextmatch_controller.js b/etemplate/js/et2_extension_nextmatch_controller.js index 1c2a6fc439..1d585c09af 100644 --- a/etemplate/js/et2_extension_nextmatch_controller.js +++ b/etemplate/js/et2_extension_nextmatch_controller.js @@ -239,8 +239,11 @@ var et2_nextmatch_controller = et2_dataview_controller.extend(et2_IDataProvider, // Initialize the object manager - look for application // object manager 1 level deep var gom = egw_getObjectManager(this.egw.appName,true,1); - this._objectManager = gom.addObject( + if(this._objectManager == null) + { + this._objectManager = gom.addObject( new egwActionObjectManager(uid, this._actionManager)); + } this._objectManager.flags = this._objectManager.flags | EGW_AO_FLAG_DEFAULT_FOCUS | EGW_AO_FLAG_IS_CONTAINER; },