RM-6792 review - change unfiled folder to container

This commit is contained in:
Sara Aspery
2019-05-21 12:48:32 +01:00
parent 6aa99b03bb
commit b27239abf5

View File

@@ -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);