fixes up legacy trees with the correct alias and forces legacy root nodes to load the dashboard route.
This commit is contained in:
@@ -29,6 +29,8 @@ function treeService($q, treeResource, iconHelper, notificationsService, $rootSc
|
||||
if (treeNodes[i].metaData && treeNodes[i].metaData["treeAlias"]) {
|
||||
//this is a root node
|
||||
treeNodes[i].routePath = section;
|
||||
//we're going to remove any js callbacks from legacy tree nodes here!
|
||||
treeNodes[i].metaData["jsClickCallback"] = null;
|
||||
}
|
||||
else {
|
||||
var treeAlias = this.getTreeAlias(treeNodes[i]);
|
||||
|
||||
@@ -139,7 +139,7 @@ namespace Umbraco.Web.Trees
|
||||
{
|
||||
Children = legacyAttempt.Result
|
||||
};
|
||||
sectionRoot.AdditionalData.Add("treeType", Type.GetType(configTree.Type).FullName);
|
||||
sectionRoot.AdditionalData.Add("treeAlias", configTree.Alias);
|
||||
return sectionRoot;
|
||||
}
|
||||
|
||||
|
||||
@@ -284,7 +284,7 @@ namespace Umbraco.Web.Trees
|
||||
};
|
||||
if (isRoot)
|
||||
{
|
||||
node.AdditionalData.Add("treeType", xmlTreeNode.TreeType);
|
||||
node.AdditionalData.Add("treeAlias", xmlTreeNode.TreeType);
|
||||
}
|
||||
|
||||
//This is a special case scenario, we know that content/media works based on the normal Belle routing/editing so we'll ensure we don't
|
||||
|
||||
Reference in New Issue
Block a user