From ef7af24a416ada83720bc9ab2a4c17d7c4cdc06e Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 25 May 2021 11:32:18 -0400 Subject: [PATCH] LP1904036 Avoid re-prompt on strict barcode Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts b/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts index c339b73c51..e5df857537 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts @@ -1182,7 +1182,12 @@ export class CircService { } this.components.badBarcodeDialog.barcode = params.copy_barcode; - return this.components.badBarcodeDialog.open().toPromise(); + return this.components.badBarcodeDialog.open().toPromise() + // Avoid prompting again on an override + .then(response => { + params._checkbarcode = false + return response; + }); } checkBarcode(barcode: string): boolean { -- 2.11.0