From 1f241c72dcce72b9e374d741990f67db4007dfda Mon Sep 17 00:00:00 2001 From: Alex ORLUC <alex.orluc@maarch.org> Date: Mon, 13 Jul 2020 15:42:23 +0000 Subject: [PATCH] FIX #14199 TIME 0:10 fix redirect new doc (cherry picked from commit b162e874de20bf76a6639bd27aafbd4d2bbeba96) --- src/frontend/app/signature-book.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend/app/signature-book.component.ts b/src/frontend/app/signature-book.component.ts index 73a2ca57ba3..7a97170a48a 100755 --- a/src/frontend/app/signature-book.component.ts +++ b/src/frontend/app/signature-book.component.ts @@ -460,7 +460,9 @@ export class SignatureBookComponent implements OnInit, OnDestroy { if (data === true) { this.actionService.stopRefreshResourceLock(); - this.actionService.unlockResource(this.userId, this.groupId, this.basketId, [this.resId]); + if (!this.actionService.actionEnded) { + this.actionService.unlockResource(this.userId, this.groupId, this.basketId, [this.resId]); + } const path = 'signatureBook/users/' + this.userId + '/groups/' + this.groupId + '/baskets/' + this.basketId + '/resources/' + resId; this.router.navigate([path]); } else { -- GitLab