From f54e5d4b1b2f5a784eeaf2f194b878adff1b8aa0 Mon Sep 17 00:00:00 2001 From: Matt Gilman Date: Tue, 19 Apr 2016 09:37:31 -0400 Subject: [PATCH] NIFI-1551: - Ensuring the datum is included when getting the entity key in nf-actions. This closes #364. Signed-off-by: Bryan Bende --- .../src/main/webapp/js/nf/canvas/nf-actions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-actions.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-actions.js index 9a1e934551..b5f664f26c 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-actions.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-actions.js @@ -413,7 +413,7 @@ nf.Actions = (function () { // build the entity var entity = {}; - entity[nf[d.type].getEntityKey()] = { + entity[nf[d.type].getEntityKey(d)] = { 'id': d.component.id, 'state': 'STOPPED' }; @@ -460,7 +460,7 @@ nf.Actions = (function () { // build the entity var entity = {}; - entity[nf[d.type].getEntityKey()] = { + entity[nf[d.type].getEntityKey(d)] = { 'id': d.component.id, 'state': 'DISABLED' }; @@ -547,7 +547,7 @@ nf.Actions = (function () { // build the entity var entity = {}; - entity[nf[d.type].getEntityKey()] = component; + entity[nf[d.type].getEntityKey(d)] = component; startRequests.push(updateResource(d.component.uri, entity).done(function (response) { if (nf.CanvasUtils.isProcessor(selected)) { @@ -624,7 +624,7 @@ nf.Actions = (function () { // build the entity var entity = {}; - entity[nf[d.type].getEntityKey()] = component; + entity[nf[d.type].getEntityKey(d)] = component; stopRequests.push(updateResource(d.component.uri, entity).done(function (response) { if (nf.CanvasUtils.isProcessor(selected)) {