LP#1942220: eg-item-location-select: do more unbreaking of contextOrgId
authorGalen Charlton <gmc@equinoxOLI.org>
Wed, 8 Dec 2021 21:54:29 +0000 (16:54 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Wed, 8 Dec 2021 22:39:10 +0000 (17:39 -0500)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/share/item-location-select/item-location-select.component.ts

index e951245..e150c5b 100644 (file)
@@ -262,7 +262,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);
         }