From a8a3c1f6e6cf11109c1c2ce44d9dc819e38b4754 Mon Sep 17 00:00:00 2001 From: Aleksander Lund Date: Mon, 2 Oct 2023 20:22:43 +0200 Subject: [PATCH] Do not set ProposedPerson to NULL when resetting workflow --- .../Commands/Requests/InternalRequests/ResetWorkflow.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backend/api/Fusion.Resources.Domain/Commands/Requests/InternalRequests/ResetWorkflow.cs b/src/backend/api/Fusion.Resources.Domain/Commands/Requests/InternalRequests/ResetWorkflow.cs index c5fae299c..ba7d57ba0 100644 --- a/src/backend/api/Fusion.Resources.Domain/Commands/Requests/InternalRequests/ResetWorkflow.cs +++ b/src/backend/api/Fusion.Resources.Domain/Commands/Requests/InternalRequests/ResetWorkflow.cs @@ -36,7 +36,6 @@ public async Task Handle(ResetWorkflow request, CancellationToken cancella requestItem.State = new DbOpState(); requestItem.IsDraft = true; requestItem.AssignedDepartment = null; - requestItem.ProposedPerson = new DbOpProposedPerson(); db.Workflows.RemoveRange( db.Workflows.Where(wf => wf.RequestId == request.requestId)