[SummaryWidget] Use objectutil to get legacy id

Use objectUtils to get a proper legacy id so that namespaces are
properly handled.  Fixes https://github.com/nasa/openmct/issues/1858
This commit is contained in:
Pete Richards 2018-01-02 15:56:34 -05:00 committed by Victor Woeltjen
parent 1ad5094b72
commit 5ec3b98d1c

View File

@ -5,6 +5,7 @@ define([
'./TestDataManager',
'./WidgetDnD',
'./eventHelpers',
'../../../api/objects/object-utils',
'lodash',
'zepto'
], function (
@ -14,6 +15,7 @@ define([
TestDataManager,
WidgetDnD,
eventHelpers,
objectUtils,
_,
$
) {
@ -77,7 +79,7 @@ define([
this.addHyperlink(domainObject.url, domainObject.openNewTab);
this.watchForChanges(openmct, domainObject);
var id = this.domainObject.identifier.key,
var id = objectUtils.makeKeyString(this.domainObject.identifier),
self = this,
oldDomainObject,
statusCapability;