From ff28e3b37cb6d178bffd7ff533739b596e11efa4 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Wed, 10 Feb 2021 11:51:55 -0800 Subject: [PATCH] LP1873322: Angular Admin Pages default to workstation OU To test: 1) Apply this patch. 2) Log in using a workstation at a particular org unit. 3) Open some of the following admin pages: Local Admin > Address Alerts Local Admin > Carousels Local Admin > Group Penalty Thresholds Local Admin > Course Reserves List > Terms Tab Server Admin > Billing Types Server Admin > Call Number/Volume Suffixes Server Admin > Copy Tags Server Admin > Hard Due Date Configuration Acquisitions Admin > Cancel Reason Configuration Acquisitions Admin > Claim Policies Booking Admin > Resource Types Booking Admin > Resource Attribute Values 4) Verify that these pages automatically open to your workstation's org unit. Signed-off-by: Jane Sandberg Signed-off-by: Michele Morgan Signed-off-by: Jason Stephenson --- .../eg2/src/app/staff/share/admin-page/admin-page.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts b/Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts index dfc85a23ef..cc8755f779 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts @@ -153,7 +153,7 @@ export class AdminPageComponent implements OnInit { if (this.orgField) { this.orgFieldLabel = this.idlClassDef.field_map[this.orgField].label; - this.contextOrg = this.org.get(orgId) || this.org.root(); + this.contextOrg = this.org.get(orgId) || this.org.get(this.auth.user().ws_ou()) || this.org.root(); this.searchOrgs = {primaryOrgId: this.contextOrg.id()}; } } -- 2.43.2