RM-978 (Unable to navigate to copied folder from a collaboration site to RM site)

* Fixed last failing tests
 * Tests now run as a non-admin user

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@94260 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2015-01-28 17:45:41 +00:00
parent 255f526790
commit c42f25c405
2 changed files with 93 additions and 36 deletions

View File

@@ -79,8 +79,7 @@ public class ObjectType extends BaseBehaviourBean implements NodeServicePolicies
}
// Documents can be moved only into a RM folder
NodeRef target = newChildAssocRef.getChildRef();
if (isTargetParentFilePlanComponent && !isRecordFolder(target))
if (isTargetParentFilePlanComponent && !isRecordFolder(targetParent))
{
throw new AlfrescoRuntimeException("A document can only be moved into a folder in RM site.");
}