Etemplate - fix nextmatch only fetched data when it was at top level namespace

This commit is contained in:
nathangray 2019-03-28 11:08:32 -06:00
parent a5402ad4b6
commit 31b9c529b8

View File

@ -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;