#3419 fix error in backend for sections with no tree (forms when not installed)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user