Deleting a role from a party generates an error when that PartyRole is used in an other entity record.
See attached screenshot
Steps to reproduce:
- Go to https://demo-trunk.ofbiz.apache.org/partymgr/control/viewroles?partyId=DemoCustomer;
- Remove the 'Contact' role from the party.
See the error shown (attached screenshot).
Such errors pop up due to referential integrity (used in other entities).