LP1889128 Clear patron barcode on staff hold
authorBill Erickson <berickxx@gmail.com>
Thu, 8 Oct 2020 14:31:59 +0000 (10:31 -0400)
committerJane Sandberg <sandbej@linnbenton.edu>
Wed, 6 Jan 2021 00:48:27 +0000 (16:48 -0800)
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 <berickxx@gmail.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>

Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.ts

index 935fa33..2350890 100644 (file)
@@ -298,8 +298,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());
         }
     }