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

Title passed in parameter not displayed in inline form for new documents

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 3.1
    • None
    • Unknown

    Description

      When editing a new document in inline form (for creation purposes), a title parameter can be passed, to be saved as the title of the document to be created. However, the form being displayed for edit does not have the passed title, but the page name as title. E.g. go to the following url:

      /xwiki/bin/inline/Sandbox/TestTitle?title=Test%20title%20with%20spaces

      You will see TestTitle as the displayed title.

      Upon save though, the right title is displayed (the one passed in the parameter). Save the form that you got when accessing the URL above, and you will see "Test title with spaces" as the document title.

      From what I could find, this is caused by the fact that the title displayed is actually $tdoc.displayTitle, and the title passed as a parameter is only set for $doc, not for $tdoc.

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              lucaa Anca Luca
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: