From: Bill Erickson Date: Mon, 3 May 2021 14:34:08 +0000 (-0400) Subject: LP1904036 Recent patrons fixes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=dd9087bfa184105b4277daeba252ca50b24ef63c;p=Evergreen.git LP1904036 Recent patrons fixes 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.service.ts b/Open-ILS/src/eg2/src/app/staff/circ/patron/patron.service.ts index 41940b68a0..db322644b4 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/patron.service.ts +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/patron.service.ts @@ -95,8 +95,7 @@ export class PatronContextService { addRecentPatron(): Promise { return this.serverStore.getItem('ui.staff.max_recent_patrons') - .then(sets => { - const num = sets['ui.staff.max_recent_patrons']; + .then(num => { if (num) { this.maxRecentPatrons = num; } const patrons: number[] = diff --git a/Open-ILS/src/eg2/src/app/staff/nav.component.html b/Open-ILS/src/eg2/src/app/staff/nav.component.html index 6e73bd4948..b7afa93f66 100644 --- a/Open-ILS/src/eg2/src/app/staff/nav.component.html +++ b/Open-ILS/src/eg2/src/app/staff/nav.component.html @@ -97,7 +97,7 @@ Retrieve Last Patron - + Retrieve Recent Patrons diff --git a/Open-ILS/src/eg2/src/app/staff/share/patron/search.component.ts b/Open-ILS/src/eg2/src/app/staff/share/patron/search.component.ts index 8ca36a9aef..9e73b2818c 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/patron/search.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/patron/search.component.ts @@ -165,9 +165,9 @@ export class PatronSearchComponent implements OnInit, AfterViewInit { let observable: Observable; - if (this.patronIds) { + if (this.patronIds && !this.startWithFired) { observable = this.searchById(this.patronIds); - this.patronIds = null; + this.startWithFired = true; } else if (this.search.id) { observable = this.searchById([this.search.id]); } else {