From 580db0505e8e30489a63e2001d4fe5955e5b726d Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 8 Dec 2021 10:42:20 -0500 Subject: [PATCH] LP#1942220: eg-item-location-select: fix use of contextOrgId Signed-off-by: Galen Charlton Signed-off-by: Ruth Frasur Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg --- .../app/share/item-location-select/item-location-select.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/share/item-location-select/item-location-select.component.ts b/Open-ILS/src/eg2/src/app/share/item-location-select/item-location-select.component.ts index 33edf714f8..e4836fd0d3 100644 --- a/Open-ILS/src/eg2/src/app/share/item-location-select/item-location-select.component.ts +++ b/Open-ILS/src/eg2/src/app/share/item-location-select/item-location-select.component.ts @@ -285,7 +285,9 @@ export class ItemLocationSelectComponent } const orgsFromCache = this.loc.filterOrgsCache[this.permFilter]; - if (orgsFromCache) { + if (orgsFromCache && !this._contextOrgId) { + // if we're using contextOrgId, it may well change, so + // don't use the cache return Promise.resolve(this.filterOrgs = orgsFromCache); } -- 2.11.0