Child nodes of a list view should now render when set as a start node
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user