Child nodes of a list view should now render when set as a start node

This commit is contained in:
Robert
2018-05-15 11:21:37 +02:00
parent 324cd7e98f
commit 5cd80daa3f
2 changed files with 39 additions and 5 deletions
@@ -73,16 +73,17 @@ namespace Umbraco.Web.Trees
var allowedUserOptions = GetAllowedUserMenuItemsForNode(e);
if (CanUserAccessNode(e, allowedUserOptions))
{
//Special check to see if it ia a container, if so then we'll hide children.
var isContainer = e.IsContainer(); // && (queryStrings.Get("isDialog") != "true");
var hasChildren = ShouldRenderChildrenOfContainer(e);
var node = CreateTreeNode(
entity,
Constants.ObjectTypes.DocumentGuid,
parentId,
queryStrings,
entity.HasChildren && (isContainer == false));
hasChildren);
node.AdditionalData.Add("contentType", entity.ContentTypeAlias);
@@ -253,4 +254,4 @@ namespace Umbraco.Web.Trees
return _treeSearcher.ExamineSearch(Umbraco, query, UmbracoEntityTypes.Document, pageSize, pageIndex, out totalFound, searchFrom);
}
}
}
}