This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-9d507dc6-baac-452b-8661-0060132cd5b3 XWIKI-25706 Open

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

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-05143018-4279-45c3-8c35-5067fa1bf1fe Michael Hamann created this issue on 09/Nov/26 17:13
 
Summary: Editing the title of a translated page in Live Data changes the title of the default document instead of the displayed translation
Issue Type: cid:jira-generated-image-avatar-9d507dc6-baac-452b-8661-0060132cd5b3 Bug
Affects Versions: 13.4-rc-1
Assignee: Unassigned
Components: Live Data
Created: 09/Nov/26 17:13
Priority: cid:jira-generated-image-static-major-2229a4da-a6e0-4f3f-bf6d-64c9c52a6608 Major
Reporter: Michael Hamann
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.

 
 

1 update

 
cid:jira-generated-image-avatar-05143018-4279-45c3-8c35-5067fa1bf1fe Changes by Michael Hamann on 09/Nov/26 17:13
 
Fix Version: 18.10.0-rc-1