From 3feea0497319f9a98e268ca524b522061874104d Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 14 Jan 2022 11:28:12 -0500 Subject: [PATCH] LP1904036 Patron Search clears previous patron Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/circ/patron/patron.component.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/patron.component.ts b/Open-ILS/src/eg2/src/app/staff/circ/patron/patron.component.ts index 0684348e54..96f64d84e6 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/patron.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/patron.component.ts @@ -155,6 +155,13 @@ export class PatronComponent implements OnInit, AfterViewInit { this.patronTab = 'other'; } + // Clear all previous patron data when returning to the + // search from after other patron-level navigation. + if (this.patronTab === 'search') { + this.context.summary = null; + this.patronId = null; + } + const prevId = this.context.summary ? this.context.summary.id : null; -- 2.11.0