LP1904036 Avoid re-prompt on strict barcode
authorBill Erickson <berickxx@gmail.com>
Tue, 25 May 2021 15:32:18 +0000 (11:32 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:35 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts

index c339b73..e5df857 100644 (file)
@@ -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 {