mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00
DS-3179
This commit is contained in:
@@ -427,13 +427,11 @@ public class CommunityServiceImpl extends DSpaceObjectServiceImpl<Community> imp
|
|||||||
String removedHandle = childCommunity.getHandle();
|
String removedHandle = childCommunity.getHandle();
|
||||||
UUID removedId = childCommunity.getID();
|
UUID removedId = childCommunity.getID();
|
||||||
|
|
||||||
|
rawDelete(context, childCommunity);
|
||||||
|
|
||||||
parentCommunity.removeSubCommunity(childCommunity);
|
|
||||||
childCommunity.getParentCommunities().remove(parentCommunity);
|
childCommunity.getParentCommunities().remove(parentCommunity);
|
||||||
if(CollectionUtils.isEmpty(childCommunity.getParentCommunities()))
|
parentCommunity.removeSubCommunity(childCommunity);
|
||||||
{
|
|
||||||
rawDelete(context, childCommunity);
|
|
||||||
}
|
|
||||||
log.info(LogManager.getHeader(context, "remove_subcommunity",
|
log.info(LogManager.getHeader(context, "remove_subcommunity",
|
||||||
"parent_comm_id=" + parentCommunity.getID() + ",child_comm_id=" + childCommunity.getID()));
|
"parent_comm_id=" + parentCommunity.getID() + ",child_comm_id=" + childCommunity.getID()));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user