From 949eb99bddbd0d57cc6e919378fd321b185622eb Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 30 Aug 2022 12:02:28 -0400 Subject: [PATCH] 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 --- .../app/share/item-location-select/item-location-select.component.ts | 2 ++ 1 file changed, 2 insertions(+) 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)]); -- 2.11.0