LP2002435: Don't allow shelving location fm-editor to change delete flag
authorJane Sandberg <sandbergja@gmail.com>
Wed, 11 Jan 2023 03:17:18 +0000 (19:17 -0800)
committerMichele Morgan <mmorgan@noblenet.org>
Fri, 17 Mar 2023 13:09:08 +0000 (09:09 -0400)
To test:
1. Go to the Local Admin > Shelving Locations Editor screen
2. Select a location and edit it.
3. Note that with this patch in place, the Delete checkbox
is no longer editable.

Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts

index 267f008..22e40f6 100644 (file)
@@ -28,6 +28,7 @@ const routes: Routes = [{
     data: [{
         schema: 'asset',
         table: 'copy_location',
+        readonlyFields: 'deleted',
         fieldOrder: 'owning_lib,name,opac_visible,circulate,holdable,hold_verify,checkin_alert,deleted,label_prefix,label_suffix,url,id'}]
 }, {
     path: 'asset/shelving_location_groups',