From 15278ef5a4eec0243641bd24569f8d985ea9b7fd Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Mon, 23 Sep 2019 16:13:58 +0200 Subject: [PATCH] Fix bug in WorkflowDefinitionController --- .../Areas/Elsa/Controllers/WorkflowDefinitionController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dashboard/Elsa.Dashboard/Areas/Elsa/Controllers/WorkflowDefinitionController.cs b/src/dashboard/Elsa.Dashboard/Areas/Elsa/Controllers/WorkflowDefinitionController.cs index b2dc2e92a..e39a9c136 100644 --- a/src/dashboard/Elsa.Dashboard/Areas/Elsa/Controllers/WorkflowDefinitionController.cs +++ b/src/dashboard/Elsa.Dashboard/Areas/Elsa/Controllers/WorkflowDefinitionController.cs @@ -102,7 +102,7 @@ namespace Elsa.Dashboard.Areas.Elsa.Controllers await workflowDefinitionStore.SaveAsync(workflow, cancellationToken); notifier.Notify("New workflow successfully created.", NotificationType.Success); - return RedirectToAction("Edit", new { id = workflow.Id }); + return RedirectToAction("Edit", new { id = workflow.DefinitionId }); } [HttpGet("edit/{id}")]