U4-10023 - multiple start nodes

This commit is contained in:
Stephan
2017-07-26 08:35:08 +02:00
parent bb9ec82060
commit a8c29644d4
14 changed files with 119 additions and 74 deletions

View File

@@ -43,8 +43,8 @@ namespace Umbraco.Web.Trees
{
var node = base.CreateRootNode(queryStrings);
//if the user's start node is not default, then ensure the root doesn't have a menu
if (UserStartNodes.Length > 0 && UserStartNodes.Contains(Constants.System.Root) == false)
// if the user's start node is not default, then ensure the root doesn't have a menu
if (UserStartNodes.Contains(Constants.System.Root) == false)
{
node.MenuUrl = "";
}
@@ -123,8 +123,8 @@ namespace Umbraco.Web.Trees
{
var menu = new MenuItemCollection();
//if the user's start node is not the root then ensure the root menu is empty/doesn't exist
if (UserStartNodes.Length > 0 && UserStartNodes.Contains(Constants.System.Root) == false)
// if the user's start node is not the root then ensure the root menu is empty/doesn't exist
if (UserStartNodes.Contains(Constants.System.Root) == false)
{
return menu;
}