Fix for getting the right collection.
This commit is contained in:
@@ -29,7 +29,7 @@ namespace Umbraco.Web.Trees
|
||||
{
|
||||
var root = base.CreateRootNode(queryStrings);
|
||||
//check if there are any templates
|
||||
root.HasChildren = Services.MacroService.GetAll().Any();
|
||||
root.HasChildren = Services.FileService.GetTemplates(-1).Any();
|
||||
return root;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user