Cleanup trees

This commit is contained in:
Stephan
2019-01-22 09:31:47 +01:00
parent a53a15f4d8
commit ad026e25d7
37 changed files with 277 additions and 300 deletions

View File

@@ -60,7 +60,7 @@ namespace Umbraco.Web.Trees
if (string.IsNullOrEmpty(application)) throw new HttpResponseException(HttpStatusCode.NotFound);
//find all tree definitions that have the current application alias
var groupedTrees = _treeService.GetGroupedTrees(application);
var groupedTrees = _treeService.GetBySectionGrouped(application);
var allTrees = groupedTrees.Values.SelectMany(x => x).ToList();
if (string.IsNullOrEmpty(tree) == false || allTrees.Count == 1)