LP#1775466 Avoid grid prefix dupe schema for acq admin
authorBill Erickson <berickxx@gmail.com>
Wed, 5 Sep 2018 15:02:50 +0000 (11:02 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 5 Sep 2018 15:02:50 +0000 (11:02 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/admin/basic-admin-page.component.ts

index cb18477..0d6be84 100644 (file)
@@ -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_];