From: Bill Erickson Date: Wed, 5 Sep 2018 15:02:50 +0000 (-0400) Subject: LP#1775466 Avoid grid prefix dupe schema for acq admin X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1bcea1f59f5b7c7bec87d1e1780dd68fec83b49a;p=working%2FEvergreen.git LP#1775466 Avoid grid prefix dupe schema for acq admin Signed-off-by: Bill Erickson --- 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_];