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

@@ -484,6 +484,8 @@ public class CategoriesDialog extends BaseDialogBean implements IContextListener
} }
} }
else else
{
if (getCategory() != null)
{ {
handler = new CategoryBreadcrumbHandler( handler = new CategoryBreadcrumbHandler(
getCategory().getNodeRef(), Repository.getNameForNode(getNodeService(), getCategory().getNodeRef())); getCategory().getNodeRef(), Repository.getNameForNode(getNodeService(), getCategory().getNodeRef()));
@@ -491,6 +493,7 @@ public class CategoriesDialog extends BaseDialogBean implements IContextListener
this.setCurrentCategory(handler.nodeRef); this.setCurrentCategory(handler.nodeRef);
} }
} }
}
@Override @Override
protected String finishImpl(FacesContext context, String outcome) throws Exception protected String finishImpl(FacesContext context, String outcome) throws Exception