From 84750a1939a81d51533f5a769b06b4770324e3ef Mon Sep 17 00:00:00 2001 From: Alex ORLUC <alex.orluc@maarch.org> Date: Tue, 10 Mar 2020 17:16:44 +0100 Subject: [PATCH] FEAT #13529 TIME 0:10 do not save avis user in avis circuit (parallel avis) --- .../send-avis-parallel-action.component.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/frontend/app/actions/avis-parallel-send-action/send-avis-parallel-action.component.ts b/src/frontend/app/actions/avis-parallel-send-action/send-avis-parallel-action.component.ts index 47c4f71f6ab..7afc507fc41 100644 --- a/src/frontend/app/actions/avis-parallel-send-action/send-avis-parallel-action.component.ts +++ b/src/frontend/app/actions/avis-parallel-send-action/send-avis-parallel-action.component.ts @@ -51,20 +51,14 @@ export class SendAvisParallelComponent implements AfterViewInit { this.loading = true; if (this.data.resIds.length === 0) { let res = await this.indexDocument(); - if (res) { - res = await this.appAvisWorkflow.saveAvisWorkflow(this.data.resIds); - } + if (res) { this.executeAction(this.data.resIds); } } else { const realResSelected: number[] = this.data.resIds.filter((resId: any) => this.resourcesError.map(resErr => resErr.res_id).indexOf(resId) === -1); - const res = await this.appAvisWorkflow.saveAvisWorkflow(realResSelected); - - if (res) { - this.executeAction(realResSelected); - } + this.executeAction(realResSelected); } this.loading = false; } -- GitLab