Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1538

Tree does not work if setPath() is used in custom tree configuration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an issue
    • Major
    • None
    • None
    • admininterface
    • None
    • Firefox 2
      Internet Explorer 6

    Description

      If specifyiing a custom tree config with a setPath(), the tree does not function properly. Trying to expand subitems causes weird behaviour...

      Steps to reproduce (thanks to Gregory):

      1) Create a new tree configuration class:
      public class MyTreeConfiguration extends WebsiteTreeConfiguration {
      public void prepareTree(Tree tree, boolean browseMode, HttpServletRequest request)

      { super.prepareTree(tree, browseMode, request); tree.setPath("/foobar"); }

      }
      Deploy that class in magnolia.

      2) Reference the configuration in a new tree definition:
      .../my-new-tree/configurationClass : info.magnolia.test.
      MyTreeConfiguration

      3) Finally, setup my dialog's link control with a "tree" property set to the newly created Tree ("my-new-tree")

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                pbaerfuss Philipp Bärfuss
                zambak zam6ak
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD