Details
-
Bug
-
Status: Closed (View Workflow)
-
TBD
-
Resolution: Done
-
-
ERM Sprint 103, ERM Sprint 104, ERM Sprint 105
-
Bienenvolk
Description
Overview:
When the user tries to delete a Supplementary Property which has been applied to an agreement the error message "There was an error deleting the supplementary property. org.hibernate.exception.ConstraintViolationException: could not execute statement" is displayed.
Steps to Reproduce:
- Log into snapshot as diku_admin.
- Open the Settings app and go to Agreements > Supplementary properties.
- Add a new supplementary property.
- In the Agreements app, Edit an agreement.
- Apply the supplementary property created in step 3 and save the agreement.
- Open the Settings app and go to Agreements > Supplementary properties.
- "Delete" the supplementary property
- Confirm the deletion (select the "Delete" button in the "Delete supplementary property" modal).
Expected Results:
A dismissable callout should be displayed with the text "Error: Supplementary property [property name] was not deleted because it is in use on one or more agreements." as shown in the mockup.
Actual Results:
A dismissible callout is displayed with the error message "There was an error deleting the supplementary property. org.hibernate.exception.ConstraintViolationException: could not execute statement"