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=949eb99bddbd0d57cc6e919378fd321b185622eb;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 Signed-off-by: Jane Sandberg --- 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)]);