Skip to content

Commit 7778793

Browse files
committed
Changing the code, so that as soon as we creates a new task, then we set the IsDoneAtEditable to true for said eForm.
1 parent c33150d commit 7778793

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

eFormAPI/Plugins/BackendConfiguration.Pn/BackendConfiguration.Pn/Services/BackendConfigurationTaskWizardService/BackendConfigurationTaskWizardService.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,11 @@ public async Task<OperationResult> CreateTask(TaskWizardCreateModel createModel)
364364
.Where(x => x.WorkflowState != Constants.WorkflowStates.Removed)
365365
.Select(x => x.Text)
366366
.FirstOrDefault();
367+
368+
var ct = await sdkDbContext.CheckLists.FirstAsync(x => x.Id == createModel.EformId);
369+
ct.IsDoneAtEditable = true;
370+
await ct.Update(sdkDbContext).ConfigureAwait(false);
371+
367372
var folderName = sdkDbContext.FolderTranslations
368373
.Where(x => x.FolderId == createModel.FolderId)
369374
.Where(x => x.WorkflowState != Constants.WorkflowStates.Removed)

0 commit comments

Comments
 (0)