mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-6792 review - change unfiled folder to container
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user