Fixes: U4-3518 'Start Node in content' property of user does not work.

This commit is contained in:
Shannon
2013-11-14 19:58:55 +11:00
parent 2f62c58055
commit 367bbd7eff

View File

@@ -68,7 +68,7 @@ namespace Umbraco.Web.Trees
var hasChildren = e.HasChildren;
//Special check to see if it ia a container, if so then we'll hide children.
if (entity.AdditionalData["IsContainer"] is bool && (bool) entity.AdditionalData["IsContainer"])
if (entity.AdditionalData.ContainsKey("IsContainer") && entity.AdditionalData["IsContainer"] is bool && (bool) entity.AdditionalData["IsContainer"])
{
hasChildren = false;
}