Details
-
Bug
-
Resolution: Unresolved
-
Major
-
13.4-rc-1
-
None
-
Unknown
-
Description
Steps to reproduce:
- Enable multilingual mode with English (default) and French as supported languages.
- Create a page with the title "English title" and add a French translation with the title "Titre français".
- Create a page with a Live Data listing this page with the liveTable source and the doc.title column.
- View the page in French (?language=fr): the title column displays "Titre français".
- 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
- relates to
-
XWIKI-18097 In-line editing should work with the raw property value not the display value
-
- Closed
-
-
XWIKI-23007 Improve locale handling for metadata objects in live table
-
- Open
-