RM-6792 review - change unfiled folder to container

This commit is contained in:
Sara Aspery
2019-05-21 12:39:46 +01:00
parent b3bf912a78
commit 8aeaf91926
2 changed files with 9 additions and 6 deletions

View File

@@ -917,7 +917,8 @@ public class RecordServiceImpl extends BaseBehaviourBean
{
final QName nodeType = nodeService.getType(newRecordContainer);
if(!(nodeType.equals(RecordsManagementModel.TYPE_RECORD_FOLDER) ||
nodeType.equals(RecordsManagementModel.TYPE_UNFILED_RECORD_FOLDER)))
nodeType.equals(RecordsManagementModel.TYPE_UNFILED_RECORD_FOLDER) ||
nodeType.equals(RecordsManagementModel.TYPE_UNFILED_RECORD_CONTAINER)))
{
throw new AlfrescoRuntimeException("Unable to create record, because container is not a valid type for new record.");
}