Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-14430

AllDocs tree incorrectly handles parent-child breakdown

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • 1.8 RC2
    • Index
    • None
    • navigation, breadcrumbs, AllDoc, tree

    Description

      The bug is that the same document is showing under two different parents.

      What I did was copy all the document from one space to another, this included documents that had another space document defined as a parent using

      {space}

      .

      {ParentDoc}

      (using the textfield in the editor)

      Expected behavior is for the original parent doc to end up having both documents of the same name, from the different spaces.
      It is also expected that the copied parent doc in the new space will have NO child documents because both are pointing to the parent in the other space.

      Actual behavior is that both the original parent doc in the original space, and the copied parent doc in the new space have both child documents.

      Neither behavior is what I actually wanted for my copy, so I elected to not use the space name when defining the parent document. This works fine for the breadcrumbs, they both have the ideal parent document. This does not work for the tree, neither parent document have any listed children after making this change.

      Attachments

        Activity

          People

            Unassigned Unassigned
            david.mountney David Mountney
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: