Details
-
Task
-
Status: Closed (View Workflow)
-
TBD
-
Resolution: Done
-
-
ERM Sprint 150
-
Bienenvolk
-
Nolana (R3 2022)
-
TBD
Description
In Settings, when attempting to delete a pick list which has 0 pick list values, and is in use on a supplementary property, a technical error message is displayed. Instead a user-friendly error message should be displayed.
Steps to generate error:
- In Settings > Agreements > Pick lists, add a new pick list. Do not add any pick list values.
- In Settings > Agreements > Supplementary Properties, add a new supp prop with Type=Pick list or Pick list multi-select
- Go back to Settings > Agreements > Pick lists and delete the pick list. A callout is displayed with the message:
org.hibernate.exception.ConstraintViolationException
Instead the message should read:
Error: Pick list picklist-name was not deleted. This is likely to be because it has been applied to one or more supplementary properties. To fix, remove the pick list from all supplementary properties, then try to delete the pick list again.
Additional Information
This follows on from ERM-2214
Dev task breakdown
I believe this should be as simple as adding a translation:
refdataCategory.deleteRefdataCategory.errorMessage: "<strong>Error</strong>: Pick list <strong>{label}</strong> was not deleted. This is likely to be because it has been applied to one or more supplementary properties. To fix, remove the pick list from all supplementary properties, then try to delete the pick list again."
This is the relevant translation: https://github.com/folio-org/ui-agreements/blob/master/translations/ui-agreements/en.json#L727
TestRail: Results
Attachments
Issue Links
- defines
-
ERM-2243 ui-agreements release. Fix version: 8.3.0
-
- Closed
-
-
UXPROD-3776 UX improvements for Agreements R3 2022
-
- Closed
-
- is cloned by
-
ERM-2386 Show a user-friendly message when deleting a pick list with 0 values which is assigned to a License Term
-
- Closed
-