LP#1942220: fix a merging issue with eg-item-location-select
authorGalen Charlton <gmc@equinoxOLI.org>
Tue, 30 Aug 2022 16:02:28 +0000 (12:02 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Tue, 30 Aug 2022 16:02:28 +0000 (12:02 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/share/item-location-select/item-location-select.component.ts

index 801501c..a803589 100644 (file)
@@ -270,6 +270,8 @@ export class ItemLocationSelectComponent
         const org = this._contextOrgId || this.auth.user().ws_ou();
         const contextOrgIds = this.org.ancestors(org, true);
         this.filterOrgsApplied = true;
+        let orgIds = [];
+        contextOrgIds.forEach(id => orgIds = orgIds.concat(this.org.ancestors(id, true)));
 
         if (!this.permFilter) {
             return Promise.resolve(this.filterOrgs = orgIds);