mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-6869 removing linked record during rejection
This commit is contained in:
@@ -1497,10 +1497,11 @@ public class RecordServiceImpl extends BaseBehaviourBean
|
||||
final List<ChildAssociationRef> parentAssocs = nodeService.getParentAssocs(nodeRef);
|
||||
for (ChildAssociationRef childAssociationRef : parentAssocs)
|
||||
{
|
||||
if (!childAssociationRef.isPrimary() && childAssociationRef.getParentRef().equals(originatingLocation))
|
||||
if (!childAssociationRef.isPrimary() &&
|
||||
(childAssociationRef.getParentRef().equals(originatingLocation) ||
|
||||
nodeService.getType(childAssociationRef.getParentRef()).equals(TYPE_RECORD_FOLDER)))
|
||||
{
|
||||
nodeService.removeChildAssociation(childAssociationRef);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user