Repository: nifi Updated Branches: refs/heads/master 930e95aa0 -> 684f41740
NIFI-2792 - Ensuring the flow is saved when a template is deleted. This closes #1031. Project: http://git-wip-us.apache.org/repos/asf/nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/684f4174 Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/684f4174 Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/684f4174 Branch: refs/heads/master Commit: 684f417406107b33ecdca9a36fa4ab31ae4facca Parents: 930e95a Author: Matt Gilman <matt.c.gil...@gmail.com> Authored: Mon Sep 19 15:28:55 2016 -0400 Committer: Pierre Villard <pierre.villard...@gmail.com> Committed: Wed Sep 21 16:31:40 2016 +0200 ---------------------------------------------------------------------- .../main/java/org/apache/nifi/web/StandardNiFiServiceFacade.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/nifi/blob/684f4174/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/StandardNiFiServiceFacade.java ---------------------------------------------------------------------- diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/StandardNiFiServiceFacade.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/StandardNiFiServiceFacade.java index e7196e4..1412db7 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/StandardNiFiServiceFacade.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/StandardNiFiServiceFacade.java @@ -1230,8 +1230,9 @@ public class StandardNiFiServiceFacade implements NiFiServiceFacade { @Override public void deleteTemplate(final String id) { - // create the template + // delete the template and save the flow templateDAO.deleteTemplate(id); + controllerFacade.save(); } @Override