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

Fail to display DBTree property in edit mode when an item from the third selected column does not appear in the first column

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5-milestone-1
    • Fix Version/s: 6.4.3, 7.0-rc-1
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Steps to reproduce :

      1. Add a DBTree property ('docTree') to class X
      2. Make sure 'Display type' is set to 'input'
      3. Make sure 'Multiple select', 'Use suggest' and 'Relational storage' are checked
      4. Add the following query :
        select d.fullName, d.name, d.parent from XWikiDocument d where d.space = 'XWiki' order by d.title asc
        
      5. Add a sheet for class X and display the property :
        $doc.display('docTree')
        
      6. Add an object of type X to document Y
      7. Edit document Y (in inline mode)

      The result is empty, but there is the following JavaScript error :

      this.tree is null
      

      and it comes from the fact that there are non empty values on column 3 which don't appear on column 1 .

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lucaa Anca Luca
                Reporter:
                ralucamorosan Raluca Stavro
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: