Issue Bug Closed

#91942JavaScript IRRE Handling spoils DataHandler

Anonymous 08/06/20, 12:00 updated 09/29/20, 15:06

Description

  • Website with Default Language and English Language
  • Content Element With one Field of type INLINE
  1. Insert new CE
  1. Create Inline item A
  2. Create Inline item B
  3. Create Inline item C
  4. Save
  5. Translate CE to EN
  6. Switch back to Default
  7. Create Inline item D
  8. Save
  9. 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.

Reviews 2