Boom! container nodes work for both media and content, fixes:

U4-3540 When creating a Container type node - the list view shows all children of the item it's being created underneath
U4-3541 media tree is not catering for container types
This commit is contained in:
Shannon
2013-11-15 16:56:51 +11:00
parent 0878de4a8b
commit 4545af0a21
8 changed files with 364 additions and 308 deletions

View File

@@ -84,7 +84,7 @@ namespace Umbraco.Web.Trees
}
//before we get the children we need to see if this is a container node
var current = Services.EntityService.Get(int.Parse(id), UmbracoObjectTypes.Document);
var current = Services.EntityService.Get(int.Parse(id), UmbracoObjectType);
if (current != null && current.AdditionalData.ContainsKey("IsContainer") && current.AdditionalData["IsContainer"] is bool && (bool)current.AdditionalData["IsContainer"])
{
//no children!