From 6f5a4ba2553e670d928853b0dd57d97c08ebec47 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 18 Apr 2022 11:21:17 -0400 Subject: [PATCH] LP1904036 Patron 'Done' button clears hold recipient Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/catalog/catalog.service.ts | 3 +++ Open-ILS/src/eg2/src/app/staff/circ/patron/checkout.component.ts | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/catalog.service.ts b/Open-ILS/src/eg2/src/app/staff/catalog/catalog.service.ts index 51a92ed83e..24d32df03b 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/catalog.service.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/catalog.service.ts @@ -89,6 +89,9 @@ export class StaffCatalogService { this.holdForUser = user; this.holdForChange.emit(); }); + } else { + // In case the session item was cleared from another component. + this.clearHoldPatron(); } this.searchContext.org = this.org; // service, not searchOrg diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/checkout.component.ts b/Open-ILS/src/eg2/src/app/staff/circ/patron/checkout.component.ts index f8a1fe38a5..7d4079083b 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/checkout.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/checkout.component.ts @@ -394,8 +394,10 @@ export class CheckoutComponent implements OnInit, AfterViewInit { } doneRedirect() { + // Clear the assumed hold recipient since we're done with + // this patron. + this.store.removeLoginSessionItem('eg.circ.patron_hold_target'); this.router.navigate(['/staff/circ/patron/bcsearch']); } - } -- 2.11.0