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

@@ -82,6 +82,12 @@ namespace Umbraco.Web.Trees
return Attempt<TreeNode>.Fail(xmlTreeNodeAttempt.Exception);
}
//the root can potentially be null, in that case we'll just return a null success which means it won't be included
if (xmlTreeNodeAttempt.Result == null)
{
return Attempt<TreeNode>.Succeed(null);
}
var legacyController = new LegacyTreeController(xmlTreeNodeAttempt.Result, appTree.Alias, currentSection, urlHelper);
var newRoot = legacyController.GetRootNode(formCollection);