RM: Create record action now works correctly for cm:content sub-types

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@49771 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2013-05-06 07:39:08 +00:00
parent 4c1ef74303
commit c9ec62ab8c

View File

@@ -128,7 +128,7 @@ public class CreateRecordAction extends ActionExecuterAbstractBase
logger.debug("Can not create record, because " + actionedUponNodeRef.toString() + " does not exist.");
}
}
else if (dictionaryService.isSubClass(ContentModel.TYPE_CONTENT, nodeService.getType(actionedUponNodeRef)) == false)
else if (dictionaryService.isSubClass(nodeService.getType(actionedUponNodeRef), ContentModel.TYPE_CONTENT) == false)
{
// TODO eventually we should support other types .. either as record folders or as composite records
if (logger.isDebugEnabled() == true)