From 1bcea1f59f5b7c7bec87d1e1780dd68fec83b49a Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 5 Sep 2018 11:02:50 -0400 Subject: [PATCH] LP#1775466 Avoid grid prefix dupe schema for acq admin Signed-off-by: Bill Erickson --- Open-ILS/src/eg2/src/app/staff/admin/basic-admin-page.component.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Open-ILS/src/eg2/src/app/staff/admin/basic-admin-page.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/basic-admin-page.component.ts index cb18477fcd..0d6be84dbd 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/basic-admin-page.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/basic-admin-page.component.ts @@ -38,6 +38,11 @@ export class BasicAdminPageComponent implements OnInit { // Set the prefix to "server", "local", "workstation", // extracted from the URL path. this.persistKeyPfx = this.route.snapshot.parent.url[0].path; + if (this.persistKeyPfx === 'acq') { + // ACQ is a special case, becaus unlike 'server', 'local', + // 'workstation', the schema ('acq') is the root of the path. + this.persistKeyPfx = ''; + } Object.keys(this.idl.classes).forEach(class_ => { const classDef = this.idl.classes[class_]; -- 2.11.0