RM-4717 - tests, one failing

This commit is contained in:
Ana Bozianu
2017-08-03 20:28:13 +03:00
parent 2a2a8cc3a2
commit bae4d0c394

View File

@@ -268,6 +268,11 @@ public class RecordFolderType extends AbstractDisposableItem
{
final NodeRef child = childAssocRef.getChildRef();
if(!nodeService.exists(child))
{
return;
}
// only records can be added in a record folder or hidden folders(is the case of e-mail attachments)
if (instanceOf(child, ContentModel.TYPE_FOLDER) && !nodeService.hasAspect(child, ContentModel.ASPECT_HIDDEN))
{