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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.4.3, 7.0-rc-1
    • 4.5-milestone-1
    • Old Core
    • None
    • Unknown
    • N/A
    • N/A

    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

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

              Dates

                Created:
                Updated:
                Resolved: