From ffc05ea8f732a7b0d4ccf9ca94e68abc1e2ef17d Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 28 Jul 2020 11:09:45 -0400 Subject: [PATCH] LP#1889251: make call number affix sort keys read-only This patch makes the call number prefix and suffix label sort key fields read-only on their respective Server Administration pages, as any values that a user would try to set for them would get overwritten by a database trigger. To test ------- [1] Apply the patch. [2] Go to Server Administration -> Call Number Prefixes (or Suffixes) and attempt create and edit new affixes. [3] Verify that the label sort key is a read-only display field on the edit modal. Signed-off-by: Galen Charlton Signed-off-by: Rogan Hamby --- Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts b/Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts index 998a8b9e52..ec37bc205d 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts @@ -30,6 +30,16 @@ const routes: Routes = [{ data: [{schema: 'actor', table: 'org_unit_proximity_adjustment', disableOrgFilter: true}] }, { + path: 'asset/call_number_prefix', + component: BasicAdminPageComponent, + data: [{schema: 'asset', + table: 'call_number_prefix', readonlyFields: 'label_sortkey'}] +}, { + path: 'asset/call_number_suffix', + component: BasicAdminPageComponent, + data: [{schema: 'asset', + table: 'call_number_suffix', readonlyFields: 'label_sortkey'}] +}, { path: ':schema/:table', component: BasicAdminPageComponent }]; -- 2.11.0