#3419 fix error in backend for sections with no tree (forms when not installed)

This commit is contained in:
Dave Woestenborghs
2018-10-25 09:06:53 +02:00
parent fe0176f97c
commit 3a0981e02b

View File

@@ -41,7 +41,7 @@ namespace Umbraco.Web.Trees
var groupedTrees = Services.ApplicationTreeService.GetGroupedApplicationTrees(application, onlyInitialized);
var allTrees = groupedTrees.Values.SelectMany(x => x).ToList();
if (string.IsNullOrEmpty(tree) == false || allTrees.Count <= 1)
if (string.IsNullOrEmpty(tree) == false || allTrees.Count == 1)
{
var apptree = !tree.IsNullOrWhiteSpace()
? allTrees.FirstOrDefault(x => x.Alias == tree)