Description
Expected behavior
When a marked individual (individuals.jsp
) has only one associated encounter and a social relationship is present, removing the Identity from the encounter page will prompt the user to delete the social relationship before the individual is deleted.
Current behavior
When an individual has only one encounter associated with it, removing the identity from the encounter page will not delete the individual if it has social relationships. Users see:
Error: You can't remove this encounter from a marked individual because it is not assigned to one. it is not assigned to one.
The message should instead tell users, "You can't remove this encounter from a marked individual because it has one or more social relationships."

Steps to reproduce:
- Find or create a Marked Individual with a social relationship (
individuals.jsp
) with one encounter - From the encounter page (
encounter.jsp
), click the Edit button of the Identity section - Under Manage Identity, click the Remove button next to Remove from marked individual
- "You can't remove this encounter from a marked individual because it is not assigned to one" message appears
Community link