Fix for ALF-11490 - It is impossible to rename or delete a root category.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32557 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2011-12-06 10:34:38 +00:00
parent 2380fc9b96
commit ac5780d906

View File

@@ -483,12 +483,15 @@ public class CategoriesDialog extends BaseDialogBean implements IContextListener
this.setCurrentCategory(handler.nodeRef);
}
}
else
else
{
handler = new CategoryBreadcrumbHandler(
if (getCategory() != null)
{
handler = new CategoryBreadcrumbHandler(
getCategory().getNodeRef(), Repository.getNameForNode(getNodeService(), getCategory().getNodeRef()));
location.set(location.size() - 1, handler);
this.setCurrentCategory(handler.nodeRef);
location.set(location.size() - 1, handler);
this.setCurrentCategory(handler.nodeRef);
}
}
}