xf 1 năm trước cách đây
mục cha
commit
2ab3abf0a1
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/Hotline/FlowEngine/Workflows/WorkflowDomainService.cs

+ 3 - 0
src/Hotline/FlowEngine/Workflows/WorkflowDomainService.cs

@@ -1851,6 +1851,9 @@ namespace Hotline.FlowEngine.Workflows
                 //1. create terminal trace 2. 撤回至startStep
                 var newStep = await DuplicateStepWithTraceAsync(workflow, startCountersignStep, EWorkflowTraceStatus.Normal, cancellationToken);
 
+                if (startCountersignStep.IsCountersignEndStep)
+                    workflow.TopCountersignStepId = startCountersignStep.CountersignStartStepId;
+
                 if (workflow.CheckIfCountersignOver())
                     workflow.EndCountersign();