RM-1871 : Merged revision(s) 94472 from /DEV/BUGFIXING/HEAD-2014_12_09

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@96064 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ana Bozianu
2015-02-04 14:29:36 +00:00
parent aa94fe0209
commit f80e8b5cbc

View File

@@ -240,10 +240,16 @@ public class TransferServiceImpl extends ServiceBaseImpl
List<ChildAssociationRef> assocs = nodeService.getChildAssocs(nodeRef, ASSOC_TRANSFERRED, RegexQNamePattern.MATCH_ALL);
for (ChildAssociationRef assoc : assocs)
{
if (freezeService.hasFrozenChildren(assoc.getChildRef()))
if(freezeService.isFrozen(assoc.getChildRef()))
{
throw new AlfrescoRuntimeException("Could not complete a transfer that contain frozen children.");
throw new AlfrescoRuntimeException("Could not complete a transfer that contains held folders");
}
if(freezeService.hasFrozenChildren(assoc.getChildRef()))
{
throw new AlfrescoRuntimeException("Cound not complete a transfer that contains folders with held children");
}
markComplete(assoc.getChildRef(), accessionIndicator, transferLocation);
}