core-geonetwork
core-geonetwork copied to clipboard
Groups owning metadata can be deleted
Tested in 3.8.x
-
Create some records and assign to the default
Sample group
-
Edit the
Sample group
and delete it --> No error is displayed, the group is removed -
Go to the editor dahsboard --> The metadata group owner has the id (2) of
Sample group
, but as the group no longer exists the id is displayed instead of the group name.
Probably no FK between metadata and groups, but this should be prevented. If the group has metadata should not be possible to be deleted.
In these cases, the metadata should be transfer to other group first and the can be deleted.
Also to consider if the group has users assigned, maybe to warn the user before deleting the group. For now just get unlinked.