From 31b9c529b8e307a331e084929f45e48fcfd47575 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 28 Mar 2019 11:08:32 -0600 Subject: [PATCH] Etemplate - fix nextmatch only fetched data when it was at top level namespace --- .../et2_extension_nextmatch_controller.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_extension_nextmatch_controller.js b/api/js/etemplate/et2_extension_nextmatch_controller.js index 0e607e5d7a..ae5bbd2907 100644 --- a/api/js/etemplate/et2_extension_nextmatch_controller.js +++ b/api/js/etemplate/et2_extension_nextmatch_controller.js @@ -61,7 +61,22 @@ var et2_nextmatch_controller = (function(){ "use strict"; return et2_dataview_co // Copy the given parameters this._actionLinks = _actionLinks; this._execId = _execId; - this._widgetId = _widget.id; + + // Get full widget ID, including path + var id = _widget.getArrayMgr('content').getPath(); + + if(typeof id == 'string') + { + this._widgetId = id; + } + else if (id.length === 1) + { + this._widgetId = id[0]; + } + else + { + this._widgetId = id.shift() + '[' + id.join('][') + ']'; + } this._parentId = _parentId; this._rowProvider = _rowProvider;