Merge branch dev-v7.7 into user-group-permissions
This commit is contained in:
@@ -55,7 +55,7 @@ namespace Umbraco.Web.Trees
|
||||
Constants.System.Root.ToString(CultureInfo.InvariantCulture),
|
||||
queryStrings,
|
||||
application);
|
||||
|
||||
|
||||
//this will be null if it cannot convert to ta single root section
|
||||
if (result != null)
|
||||
return result;
|
||||
@@ -123,16 +123,16 @@ namespace Umbraco.Web.Trees
|
||||
//This should really never happen if we've successfully got the children above.
|
||||
throw new InvalidOperationException("Could not create root node for tree " + configTree.Alias);
|
||||
}
|
||||
|
||||
//if the root node has a route path, we cannot create a single root section because by specifying the route path this would
|
||||
|
||||
//if the root node has a route path, we cannot create a single root section because by specifying the route path this would
|
||||
//override the dashboard route and that means there can be no dashboard for that section which is a breaking change.
|
||||
if (rootNode.Result.RoutePath.IsNullOrWhiteSpace() == false
|
||||
&& rootNode.Result.RoutePath != "#"
|
||||
if (rootNode.Result.RoutePath.IsNullOrWhiteSpace() == false
|
||||
&& rootNode.Result.RoutePath != "#"
|
||||
&& rootNode.Result.RoutePath != application)
|
||||
{
|
||||
{
|
||||
//null indicates this cannot be converted
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
var sectionRoot = SectionRootNode.CreateSingleTreeSectionRoot(
|
||||
rootId,
|
||||
@@ -140,10 +140,10 @@ namespace Umbraco.Web.Trees
|
||||
rootNode.Result.MenuUrl,
|
||||
rootNode.Result.Name,
|
||||
byControllerAttempt.Result);
|
||||
|
||||
//This can't be done currently because the root will default to routing to a dashboard and if we disable dashboards for a section
|
||||
|
||||
//This can't be done currently because the root will default to routing to a dashboard and if we disable dashboards for a section
|
||||
//that is really considered a breaking change. See above.
|
||||
//sectionRoot.RoutePath = rootNode.Result.RoutePath;
|
||||
//sectionRoot.RoutePath = rootNode.Result.RoutePath;
|
||||
|
||||
foreach (var d in rootNode.Result.AdditionalData)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user