From 2c18be117ba1575e6f70c7c665737b15cb796f30 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 8 Oct 2020 10:31:59 -0400 Subject: [PATCH] LP1889128 Clear patron barcode on staff hold Clear the patron barcode from the barcode input when toggling the holds placement form to request a hold for the logged in staff account. Otherwise, the barcode sticks around and could cause confusion. Signed-off-by: Bill Erickson Signed-off-by: Michele Morgan --- Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.ts index 49354bd00f..7f29e08538 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.ts @@ -291,8 +291,8 @@ export class HoldComponent implements OnInit { this.userBarcodeChanged(); } } else { - // To bypass the dupe check. - this.currentUserBarcode = '_' + this.requestor.id(); + this.userBarcode = null; + this.currentUserBarcode = null; this.getUser(this.requestor.id()); } } -- 2.11.0