From 34025e768bb7a72ab85f6a2aa1f0491f08254e33 Mon Sep 17 00:00:00 2001 From: elsenhans Date: Tue, 17 Feb 2026 14:45:18 +0100 Subject: [PATCH 1/2] UIOR-1516 --- CHANGELOG.md | 1 + src/components/POLine/POLineForm.js | 2 ++ src/components/POLine/POLineView.js | 2 ++ src/components/PurchaseOrder/PO.js | 2 ++ src/components/PurchaseOrder/POForm.js | 2 ++ .../OrderTemplates/OrderTemplateView/OrderTemplateView.js | 3 +++ .../OrderTemplatesEditor/OrderTemplatesEditor.js | 3 +++ 7 files changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bef37bb9b..0a93b0ef1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,6 +61,7 @@ * Implement action to clear rollover adjustment in the PO Line form. Refs UIOR-1484. * Display the actual estimated price on PO line edit screen with rollover adjustment. Refs UIOR-1502. * Fix permission error for edit custom-fields. Refs UIOR-1513. +* Add scope to . Refs UIOR-1516. ## [8.0.5](https://github.com/folio-org/ui-orders/tree/v8.0.5) (2025-06-30) [Full Changelog](https://github.com/folio-org/ui-orders/compare/v8.0.4...v8.0.5) diff --git a/src/components/POLine/POLineForm.js b/src/components/POLine/POLineForm.js index 7a99c694a..cf370e741 100644 --- a/src/components/POLine/POLineForm.js +++ b/src/components/POLine/POLineForm.js @@ -60,6 +60,7 @@ import { ENTITY_TYPE_PO_LINE, PO_LINE_CONFIG_NAME_PREFIX, POL_FORM_FIELDS, + SCOPE_CUSTOM_FIELDS_MANAGE, SUBMIT_ACTION_FIELD, } from '../../common/constants'; import { @@ -689,6 +690,7 @@ function POLineForm({ fieldComponent={Field} finalFormCustomFieldsValues={customFieldsValues} configNamePrefix={PO_LINE_CONFIG_NAME_PREFIX} + scope={SCOPE_CUSTOM_FIELDS_MANAGE} /> diff --git a/src/components/POLine/POLineView.js b/src/components/POLine/POLineView.js index d7b0121ae..2144565cf 100644 --- a/src/components/POLine/POLineView.js +++ b/src/components/POLine/POLineView.js @@ -75,6 +75,7 @@ import { REEXPORT_SOURCES, ORDER_LINES_ROUTE, ROUTING_LIST_ROUTE, + SCOPE_CUSTOM_FIELDS_MANAGE, PO_LINE_CONFIG_NAME_PREFIX, } from '../../common/constants'; import { useExportHistory } from '../../common/hooks'; @@ -589,6 +590,7 @@ const POLineView = ({ customFieldsValues={customFieldsValues} entityType={ENTITY_TYPE_PO_LINE} configNamePrefix={PO_LINE_CONFIG_NAME_PREFIX} + scope={SCOPE_CUSTOM_FIELDS_MANAGE} /> diff --git a/src/components/PurchaseOrder/PO.js b/src/components/PurchaseOrder/PO.js index 8b3366522..2e2368b9d 100644 --- a/src/components/PurchaseOrder/PO.js +++ b/src/components/PurchaseOrder/PO.js @@ -70,6 +70,7 @@ import { ORDERS_ROUTE, PO_CONFIG_NAME_PREFIX, REEXPORT_SOURCES, + SCOPE_CUSTOM_FIELDS_MANAGE, WORKFLOW_STATUS, } from '../../common/constants'; import { useHandleOrderUpdateError } from '../../common/hooks'; @@ -847,6 +848,7 @@ const PO = ({ customFieldsValues={customFieldsValues} entityType={ENTITY_TYPE_ORDER} configNamePrefix={PO_CONFIG_NAME_PREFIX} + scope={SCOPE_CUSTOM_FIELDS_MANAGE} /> diff --git a/src/components/PurchaseOrder/POForm.js b/src/components/PurchaseOrder/POForm.js index 9e67a87fc..7f28e6eae 100644 --- a/src/components/PurchaseOrder/POForm.js +++ b/src/components/PurchaseOrder/POForm.js @@ -48,6 +48,7 @@ import { ENTITY_TYPE_ORDER, PO_CONFIG_NAME_PREFIX, PO_FORM_FIELDS, + SCOPE_CUSTOM_FIELDS_MANAGE, SUBMIT_ACTION_FIELD, } from '../../common/constants'; import { useErrorAccordionStatus } from '../../common/hooks'; @@ -458,6 +459,7 @@ const POForm = ({ fieldComponent={Field} finalFormCustomFieldsValues={customFieldsValues} configNamePrefix={PO_CONFIG_NAME_PREFIX} + scope={SCOPE_CUSTOM_FIELDS_MANAGE} /> diff --git a/src/settings/OrderTemplates/OrderTemplateView/OrderTemplateView.js b/src/settings/OrderTemplates/OrderTemplateView/OrderTemplateView.js index 771e4636f..389df6c72 100644 --- a/src/settings/OrderTemplates/OrderTemplateView/OrderTemplateView.js +++ b/src/settings/OrderTemplates/OrderTemplateView/OrderTemplateView.js @@ -66,6 +66,7 @@ import { ENTITY_TYPE_PO_LINE, PO_CONFIG_NAME_PREFIX, PO_LINE_CONFIG_NAME_PREFIX, + SCOPE_CUSTOM_FIELDS_MANAGE, } from '../../../common/constants'; import { isOngoing } from '../../../common/POFields'; import { @@ -458,6 +459,7 @@ const OrderTemplateView = (props) => { customFieldsValues={customFieldsValues} entityType={ENTITY_TYPE_ORDER} configNamePrefix={PO_CONFIG_NAME_PREFIX} + scope={SCOPE_CUSTOM_FIELDS_MANAGE} /> { customFieldsValues={customFieldsValues} entityType={ENTITY_TYPE_PO_LINE} configNamePrefix={PO_LINE_CONFIG_NAME_PREFIX} + scope={SCOPE_CUSTOM_FIELDS_MANAGE} /> diff --git a/src/settings/OrderTemplates/OrderTemplatesEditor/OrderTemplatesEditor.js b/src/settings/OrderTemplates/OrderTemplatesEditor/OrderTemplatesEditor.js index 62854bf82..4e32ef0d9 100644 --- a/src/settings/OrderTemplates/OrderTemplatesEditor/OrderTemplatesEditor.js +++ b/src/settings/OrderTemplates/OrderTemplatesEditor/OrderTemplatesEditor.js @@ -42,6 +42,7 @@ import { PO_CONFIG_NAME_PREFIX, PO_FORM_FIELDS, PO_LINE_CONFIG_NAME_PREFIX, + SCOPE_CUSTOM_FIELDS_MANAGE, WORKFLOW_STATUS, } from '../../../common/constants'; import { @@ -469,6 +470,7 @@ const OrderTemplatesEditor = ({ displayWhenClosed={customPOFieldsVisibilityControl} displayWhenOpen={customPOFieldsVisibilityControl} configNamePrefix={PO_CONFIG_NAME_PREFIX} + scope={SCOPE_CUSTOM_FIELDS_MANAGE} /> From 34a12d02085ff4bf673b20282f6544703fb31d22 Mon Sep 17 00:00:00 2001 From: elsenhans Date: Tue, 17 Feb 2026 15:07:01 +0100 Subject: [PATCH 2/2] UIOR-1516 fix CHANGELOG --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a93b0ef1..68c23a552 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,7 +61,7 @@ * Implement action to clear rollover adjustment in the PO Line form. Refs UIOR-1484. * Display the actual estimated price on PO line edit screen with rollover adjustment. Refs UIOR-1502. * Fix permission error for edit custom-fields. Refs UIOR-1513. -* Add scope to . Refs UIOR-1516. +* Add scope to all EditCustomFieldsSettings and ViewCustomFieldsSettings. Refs UIOR-1516. ## [8.0.5](https://github.com/folio-org/ui-orders/tree/v8.0.5) (2025-06-30) [Full Changelog](https://github.com/folio-org/ui-orders/compare/v8.0.4...v8.0.5)