From: Bill Erickson Date: Fri, 14 Jan 2022 16:28:12 +0000 (-0500) Subject: LP1904036 Patron Search clears previous patron X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3feea0497319f9a98e268ca524b522061874104d;p=evergreen%2Fjoelewis.git LP1904036 Patron Search clears previous patron Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- 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;