This commit is contained in:
sgay
2011-01-20 14:04:32 -01:00
parent b82a251bb8
commit 4af6ea2b3c

View File

@@ -64,7 +64,9 @@ namespace umbraco.cms.presentation.Trees
TreeDefinition foundTree = this.Find(
delegate(TreeDefinition t)
{
return t.TreeType.Equals(typeof(T));
// zb-00002 #29929 : use IsAssignableFrom instead of Equal, otherwise you can't override build-in
// trees because for ex. PermissionEditor.aspx.cs OnInit calls FindTree<loadContent>()
return typeof(T).IsAssignableFrom(t.TreeType);
}
);
if (foundTree != null)