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=b5bc603e77e76649f6f58097221e2ccf859c3463;p=working%2FEvergreen.git LP#1942220: fix a merging issue with eg-item-location-select Signed-off-by: Galen Charlton Signed-off-by: Ruth Frasur Signed-off-by: Bill Erickson --- 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 e4836fd0d3..a8285631fa 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 @@ -279,6 +279,8 @@ export class ItemLocationSelectComponent contextOrgIds.forEach(id => orgIds = orgIds.concat(this.org.ancestors(id, 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 = [...new Set(orgIds)]);