starts fixing custom membership provider problems with the member editor/tree - this now at least loads in the members section.

This commit is contained in:
Shannon
2013-11-15 18:26:40 +11:00
parent 830d6d914f
commit febe81105b
2 changed files with 12 additions and 2 deletions

View File

@@ -75,8 +75,12 @@ namespace Umbraco.Web.Trees
foreach (var apptree in appTrees)
{
//return the root nodes for each tree in the app
var rootNode = GetRootForMultipleAppTree(apptree, queryStrings);
collection.Add(rootNode);
var rootNode = GetRootForMultipleAppTree(apptree, queryStrings);
//This could be null if the tree decides not to return it's root (i.e. the member type tree does this when not in umbraco membership mode)
if (rootNode != null)
{
collection.Add(rootNode);
}
}
var multiTree = SectionRootNode.CreateMultiTreeSectionRoot(rootId, collection);