Expand tree to current node on copy/move and when picking content

This commit is contained in:
Rasmus John Pedersen
2018-06-10 13:36:42 +02:00
parent 0eceb3c7fc
commit 66b0d4e3b6
6 changed files with 43 additions and 11 deletions

View File

@@ -243,6 +243,7 @@ namespace Umbraco.Web.Trees
public TreeNode CreateTreeNode(UmbracoEntity entity, Guid entityObjectType, string parentId, FormDataCollection queryStrings, bool hasChildren)
{
var treeNode = CreateTreeNode(entity.Id.ToInvariantString(), parentId, queryStrings, entity.Name, entity.ContentTypeIcon);
treeNode.Path = entity.Path;
treeNode.Udi = Udi.Create(UmbracoObjectTypesExtensions.GetUdiType(entityObjectType), entity.Key);
treeNode.HasChildren = hasChildren;
return treeNode;
@@ -261,6 +262,7 @@ namespace Umbraco.Web.Trees
public TreeNode CreateTreeNode(IUmbracoEntity entity, Guid entityObjectType, string parentId, FormDataCollection queryStrings, string icon, bool hasChildren)
{
var treeNode = CreateTreeNode(entity.Id.ToInvariantString(), parentId, queryStrings, entity.Name, icon);
treeNode.Path = entity.Path;
treeNode.Udi = Udi.Create(UmbracoObjectTypesExtensions.GetUdiType(entityObjectType), entity.Key);
treeNode.HasChildren = hasChildren;
return treeNode;