Skip to content

Treelist doesn't display a correct data in the tree #1278

@Elena1608

Description

@Elena1608

Expected Behavior

All allowed items should be displayed as it is in the Content Editor.

Actual Behavior

The dialogue is opened and there are the following items in the tree:

  • sitecore
    -- content
    -- forms
    -- Media Library

After refreshing, all items under 'Sitecore' are in the tree: Media Library, content, forms, layout, system, templates.

It also depends on the checkboxes in the View tab of the Content Editor.

Steps to Reproduce the Problem

  1. Create a dialog as follows:
    $dialogParams = @{
    Title = "Dialog title"
    Description = "Description under title"
    OkButtonName = "Execute"
    CancelButtonName = "Close"
    ShowHints = $true
    Parameters = @(
    @{
    Name = "treeListSelector"
    Title = "Treelist Selector"
    Editor = "treelist"
    Source = "DataSource=/sitecore/&DatabaseName=master"
    Tooltip = "Select one or more from tree"
    }
    )
    }

$dialogResult = Read-Variable @dialogParams
2. Run the script

Metadata

Metadata

Assignees

Labels

🐞 bugOops! Sorry for the inconvenience.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions