This issue has been created
There are 4 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-3bcb6031-d8a5-4948-a7de-c74fb5ab335d XWIKI-24751 Open

The inplace editor still locks the original translation when creating a new translation

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-379c632e-cff3-422e-8544-563b4370906c Marius Dumitru Florea created this issue on 27/Aug/26 15:06
 
Summary: The inplace editor still locks the original translation when creating a new translation
Issue Type: cid:jira-generated-image-avatar-3bcb6031-d8a5-4948-a7de-c74fb5ab335d Bug
Affects Versions: 15.10.11, 16.4.0
Assignee: Unassigned
Components: Edit
Created: 27/Aug/26 15:06
Priority: cid:jira-generated-image-static-major-11240cf5-3843-4c3b-8501-184873a290eb Major
Reporter: Marius Dumitru Florea
Description:

This was supposed to be fixed by XWIKI-22308, but I checked on 16.6.0 and the problem was still present. This is not a regression. The problem was simply not fixed. It's strange, because I'm pretty sure I tested the fix before closing the issue, but I probably did something wrong because the problem still reproduces on the fix version... Now the fix I did was only client-side, while the problem is also server-side. The Velocity code from `InplaceEditing` uses $tdoc which for a new translation, that wasn't saved yet, still points to the default translation. So even if we call

/xwiki/bin/get/TestPage/?sheet=XWiki.InplaceEditing&action=lock&lockAction=edit&language=fr&force_token=EjhQ96I4gYxnqE8wNCtnRQ&timestamp=1787828351782

using language=fr, the Velocity code from InplaceEditing is redirecting to

/xwiki/bin/lock/TestPage/WebHome?ajax=1&action=edit&language=en

because the French translation is not created / saved yet, so $tdoc.realLocale is English.

The problem is not only the redirect. The edit confirmation check before that is also targeting the default translation because the specified translation doesn't exist yet.

 
 

4 updates

 
cid:jira-generated-image-avatar-379c632e-cff3-422e-8544-563b4370906c Changes by Marius Dumitru Florea on 27/Aug/26 15:06
 
Fix Version: 18.8.0-rc-1
Documentation in Release Notes: N/A
Documentation: N/A
Assignee: Marius Dumitru Florea