Bug #91942
closedJavaScript IRRE Handling spoils DataHandler
100%
Description
- Website with Default Language and English Language
- Content Element With one Field of type INLINE
- Insert new CE
- Create Inline item A
- Create Inline item B
- Create Inline item C
- Save
- Translate CE to EN
- Switch back to Default
- Create Inline item D
- Save
- Switch to EN
Now you have this:
and
Now lets produce the BUG:
Change the sorting in EN:
And Save the changes.
Now it looks like this - this will blow your mind (please scroll down only if you can stand it):
"Item D" from Default-Language magically appears in the translation AND disappears in Default Language!
And for the Default CE it of course vanished:
Short: DataHandler changes the "parent" to the translated CE.
Now, I have investigated a little on this.
It is a pure JavaScript Bug (puh - it releaves me a little).
Before you change the sorting, the hidden info looks like:
Once you hit the sorting-buttons, it changes to:
The UID of "Item D" (sys_language_uid=0) appears in the list.
This must not happen. "Item D" was not translated. The UID is from "Item D" with sys_language_uid=0.
Now this explains, why the datahandler re-attaches the parents.
Dear JS Ninjas - please have a look. Thanks for reading and looking at my beautiful screenshots.