Fix logic - so that Content Blueprints tree is added to the list of trees (Finding by name/title was not working, so switched to the AdditionalData["treeAlias"] instead

This commit is contained in:
Warren Buckley
2018-10-10 15:02:50 +01:00
parent f1b20ebbb2
commit 5b3db88df9

View File

@@ -116,7 +116,7 @@ namespace Umbraco.Web.Trees
if (findAppTree != null)
{
//Now we need to get the 'TreeNode' which is in 'collection'
var treeItemNode = collection.SingleOrDefault(x => x.Name == findAppTree.Title);
var treeItemNode = collection.SingleOrDefault(x => x.AdditionalData["treeAlias"].ToString() == findAppTree.Alias);
if (treeItemNode != null)
{