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

Editing the title of a translated page in Live Data changes the title of the default document instead of the displayed translation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 18.10.0-rc-1
    • 13.4-rc-1
    • Live Data
    • None
    • Unknown

    Description

      Steps to reproduce:

      1. Enable multilingual mode with English (default) and French as supported languages.
      2. Create a page with the title "English title" and add a French translation with the title "Titre français".
      3. Create a page with a Live Data listing this page with the liveTable source and the doc.title column.
      4. View the page in French (?language=fr): the title column displays "Titre français".
      5. Edit the title in the Live Data and enter "Nouveau titre".

      Expected result:

      The title of the French translation, which is the one displayed and edited, is now "Nouveau titre". The English title is unchanged.

      Actual result:

      The title of the default (English) document is now "Nouveau titre", while the French translation still has the title "Titre français". The Live Data thus keeps displaying "Titre français" after the save, and the original title is silently overwritten.

      Cause:

      The rows of the Live Table results display the values of the translation in the current language, but the entry id (doc.fullName) doesn't contain the locale, and ModelBridge in xwiki-platform-livedata-livetable always loads and saves the default document. The same happens for the other editable document properties.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              MichaelHamann Michael Hamann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: