Skip to content

Commit ffffa2a

Browse files
committed
Fixing another site lookup issue to not include removed site.
1 parent 1d3cc43 commit ffffa2a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eFormAPI/Plugins/Workflow.Pn/Workflow.Pn/Services/WorkflowCasesService/WorkflowCasesService.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,9 @@ public async Task<OperationResult> UpdateWorkflowCase(WorkflowCasesUpdateModel m
388388
Site createdBySite = await sdkDbContext.Sites.SingleOrDefaultAsync(x => x.Id == _case.SiteId);
389389
if (!string.IsNullOrEmpty(workflowCase.SolvedBy))
390390
{
391-
Site site = await sdkDbContext.Sites.SingleOrDefaultAsync(x =>
391+
Site site = await sdkDbContext.Sites
392+
.Where(x => x.WorkflowState != Constants.WorkflowStates.Removed)
393+
.SingleOrDefaultAsync(x =>
392394
x.Name == workflowCase.SolvedBy);
393395

394396
if (workflowCase.SolvedBy != createdBySite.Name)

0 commit comments

Comments
 (0)