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

Page displayer in edit mode shows the document's full name instead of its title

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • Unknown

    Description

      When a class has a page field and that field is displayed in edit mode in another wiki that doesn't have the class, the displayer shows the document's full name instead of its title.

      Steps to reproduce:
      1. In the main wiki create a new class XWiki.MyClass with a page property page.
      2. Create a new page XWiki.MyPage with an object of XWiki.MyClass type and set a value to the page property
      3. In a subwiki add the following code to display in edit mode the page property value from the newly created page:

      $xwiki.getDocument('xwiki:XWiki.MyPage').display('page', 'edit')

      Expected result: display an input suggest with the title of the xwiki:XWiki.MyPage, just as it is displayed in the main wiki when executing the same code.
      Actual result: instead of the document title, the document full name is displayed.

      Attachments

        1. After.png
          31 kB
          Alex Cotiugă
        2. Before.png
          31 kB
          Alex Cotiugă

        Issue Links

          Activity

            People

              acotiuga Alex Cotiugă
              acotiuga Alex Cotiugă
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: