Rolls back listview items in dialog trees
This commit is contained in:
@@ -98,8 +98,7 @@ namespace Umbraco.Web.Trees
|
||||
{
|
||||
|
||||
//Special check to see if it ia a container, if so then we'll hide children.
|
||||
//we only perform this check for non-dialog trees since pickers needs access to these nodes
|
||||
var isContainer = e.IsContainer() && (queryStrings.Get("isDialog") != "true");
|
||||
var isContainer = e.IsContainer(); // && (queryStrings.Get("isDialog") != "true");
|
||||
|
||||
var node = CreateTreeNode(
|
||||
e.Id.ToInvariantString(),
|
||||
|
||||
@@ -177,8 +177,8 @@ 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), UmbracoObjectType);
|
||||
|
||||
|
||||
if (queryStrings.Get("isDialog") != "true" && current != null && current.IsContainer())
|
||||
//test if the parent is a listview / container
|
||||
if (current != null && current.IsContainer())
|
||||
{
|
||||
//no children!
|
||||
return new TreeNodeCollection();
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Umbraco.Web.Trees
|
||||
var entity = (UmbracoEntity)e;
|
||||
|
||||
//Special check to see if it ia a container, if so then we'll hide children.
|
||||
var isContainer = e.IsContainer() && (queryStrings.Get("isDialog") != "true");
|
||||
var isContainer = e.IsContainer(); // && (queryStrings.Get("isDialog") != "true");
|
||||
|
||||
var node = CreateTreeNode(
|
||||
e.Id.ToInvariantString(),
|
||||
|
||||
Reference in New Issue
Block a user