mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-978 (Unable to navigate to copied folder from a collaboration site to RM site)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@94395 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -101,17 +101,19 @@ public class ObjectType extends BaseBehaviourBean implements NodeServicePolicies
|
|||||||
|
|
||||||
NodeRef sourceParentNodeRef = nodeService.getPrimaryParent(sourceNodeRef).getParentRef();
|
NodeRef sourceParentNodeRef = nodeService.getPrimaryParent(sourceNodeRef).getParentRef();
|
||||||
boolean isSourceParentFilePlanComponent = isFilePlanComponent(sourceParentNodeRef);
|
boolean isSourceParentFilePlanComponent = isFilePlanComponent(sourceParentNodeRef);
|
||||||
boolean isTargetNodeFilePlanComponent = isFilePlanComponent(targetNodeRef);
|
|
||||||
|
NodeRef targetParentNodeRef = nodeService.getPrimaryParent(targetNodeRef).getParentRef();
|
||||||
|
boolean isTargetNodeParentFilePlanComponent = isFilePlanComponent(targetParentNodeRef);
|
||||||
|
|
||||||
// If we are doing the copy operation within the RM site then we can stop here
|
// If we are doing the copy operation within the RM site then we can stop here
|
||||||
// The method should just check copy operations from outside of RM into the RM site
|
// The method should just check copy operations from outside of RM into the RM site
|
||||||
if (isSourceParentFilePlanComponent && isTargetNodeFilePlanComponent)
|
if (isSourceParentFilePlanComponent && isTargetNodeParentFilePlanComponent)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do not allow to copy anything outside of RM site into the RM site
|
// Do not allow to copy anything outside of RM site into the RM site
|
||||||
if (!isSourceParentFilePlanComponent && isTargetNodeFilePlanComponent)
|
if (!isSourceParentFilePlanComponent && isTargetNodeParentFilePlanComponent)
|
||||||
{
|
{
|
||||||
throw new AlfrescoRuntimeException("Nothing can be copied from a collaboration site into a RM site.");
|
throw new AlfrescoRuntimeException("Nothing can be copied from a collaboration site into a RM site.");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user