We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d3cc43 commit ffffa2aCopy full SHA for ffffa2a
eFormAPI/Plugins/Workflow.Pn/Workflow.Pn/Services/WorkflowCasesService/WorkflowCasesService.cs
@@ -388,7 +388,9 @@ public async Task<OperationResult> UpdateWorkflowCase(WorkflowCasesUpdateModel m
388
Site createdBySite = await sdkDbContext.Sites.SingleOrDefaultAsync(x => x.Id == _case.SiteId);
389
if (!string.IsNullOrEmpty(workflowCase.SolvedBy))
390
{
391
- Site site = await sdkDbContext.Sites.SingleOrDefaultAsync(x =>
+ Site site = await sdkDbContext.Sites
392
+ .Where(x => x.WorkflowState != Constants.WorkflowStates.Removed)
393
+ .SingleOrDefaultAsync(x =>
394
x.Name == workflowCase.SolvedBy);
395
396
if (workflowCase.SolvedBy != createdBySite.Name)
0 commit comments