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

New XWiki Syntax guide lists every section twice

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.3-milestone-2
    • Fix Version/s: 6.1-rc-1
    • Component/s: Help
    • Labels:
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      The new syntax guide developed in XWIKI-9176 lists every section twice in the left navigation; e.g. there are two "Introduction" etc pp

      Can anyone reproduce this, or is it just me?

      In case it is not jut me, a simple fix would be to add a "addFilter('unique')." to the query generating the navigation; i.e. in XWiki.XWikiSyntax, line 45:

      #set($results = $services.query.xwql('from doc.object(XWiki.XWikiSyntaxClass) as syntax order by syntax.category, syntax.section').addFilter('currentlanguage').addFilter('unique').execute())
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                camil7 Clemens Robbenhaar
                Reporter:
                camil7 Clemens Robbenhaar
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: