mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-6792 review - change unfiled folder to container
This commit is contained in:
@@ -905,14 +905,14 @@ public class RecordServiceImpl extends BaseBehaviourBean
|
|||||||
// if optional location not specified, use the unfiledContainer
|
// if optional location not specified, use the unfiledContainer
|
||||||
if (newRecordContainer == null)
|
if (newRecordContainer == null)
|
||||||
{
|
{
|
||||||
// get the new record container for the file plan
|
// get the unfiled record container node for the file plan
|
||||||
newRecordContainer = filePlanService.getUnfiledContainer(checkedFilePlan);
|
newRecordContainer = filePlanService.getUnfiledContainer(checkedFilePlan);
|
||||||
if (newRecordContainer == null)
|
if (newRecordContainer == null)
|
||||||
{
|
{
|
||||||
throw new AlfrescoRuntimeException("Unable to create record, because record container could not be found.");
|
throw new AlfrescoRuntimeException("Unable to create record, because record container could not be found.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if optional location supplied, check that it is a valid record folder
|
// if optional location supplied, check that it is a valid record folder, unfiled record container or folder
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
final QName nodeType = nodeService.getType(newRecordContainer);
|
final QName nodeType = nodeService.getType(newRecordContainer);
|
||||||
|
Reference in New Issue
Block a user