Skip to content
Snippets Groups Projects
Commit 29a30d65 authored by Marius Dumitru Florea's avatar Marius Dumitru Florea
Browse files

XWIKI-22308: The inplace editor locks the original translation when creating a new translation

* reload the edit mode when switching the edited translation
* change the document locale before locking it (taking care to restore the original translation if the edit fails for the new translation)
* when reloading the document JSON, fallback on the orignal translation if the requested translation doesn't exist
* when rendering the document, fallback on the original translation if the edited translation is new (so that we initialize the content of the new translation with the values from the original translation)

(cherry picked from commit d4b3a322)
parent 5848596d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment