From: Galen Charlton Date: Tue, 30 Aug 2022 16:02:28 +0000 (-0400) Subject: LP#1942220: fix a merging issue with eg-item-location-select X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=67a8a9e8998b3bc567427434ec8d1025fbb838ef;p=working%2FEvergreen.git LP#1942220: fix a merging issue with eg-item-location-select Signed-off-by: Galen Charlton --- 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 801501c32b..a80358954b 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 @@ -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);