Fix regression from resolving ALF-5042 (Default root folder path '/Company Home' not found)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22845 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2010-10-04 11:45:02 +00:00
parent ffdef0597c
commit ab72af7473

View File

@@ -396,7 +396,7 @@ public class Repository implements ApplicationContextAware, ApplicationListener,
NodeRef rootNodeRef = getCompanyHome();
if (reference.length == 3)
{
if (reference[2].equals(nodeService.getProperty(rootNodeRef, ContentModel.PROP_NAME)))
if (reference[2].equals(nodeService.getPrimaryParent(rootNodeRef).getQName().toPrefixString(namespaceService)))
{
nodeRef = rootNodeRef;
}