Issue Bug Closed

#83533Copied CE elements loose language [All]

Christian Rieke 01/10/18, 18:26 updated 09/30/26, 15:15

Description

After copying a content element with language -1 [ALL], the resulting copy will be reset to language 0 [Default].

Reviews 4

Files 1

History 1522

  1. Riccardo De Contardi commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2019-03-10T17:06:57+00:00" > 03/10/19, 17:06 </span>

    Hello and sorry for the late answer.

    I tried to reproduce this issue on 8.7.24, 9.5.5 and 10.0.0-dev (Latest master) in this way

    1) TYPO3 with two languages (ITALIAN,default and ENGLISH (uid=1)
    2) Create a sysfolder “Test” and translate it
    3) create a “category” record named “test” and set its language as “all” (-1)
    4) in list view, use the context menu (or the button) to copy it
    5) paste it in the same folder

    Results

    the copy still has language=all – on 9.5.5 I also tried the same test with the EXT:news and a news record and the result is the same.

    Do you think that this issue has been solved or is there a different test I should perform?

    Thank you.

  2. Christian Rieke commented and changed attached multilang_test.mp4 assigned to Riccardo De Contardi priority Should have Must have PHP Version 7.2 <span data-processor="relativetime" data-value="2019-03-12T23:10:02+00:00" > 03/12/19, 23:10 </span>

    To reproduce:
    0) Install the official TYPO3 bootstrap package v8.7.24.
    1) Translate any page to Dansk and/or German in order to have an actual page with multiple languages.
    2) On this page, create a new “Text and Media” content element. Edit the content element, and in the Language tab switch Language to [All]. Save & close the content element.
    3) Back in the the main content area,
    (a) Drag&Drop the new content element to another position on the same page.
    (b) ALTERNATIVELY: Use the context menu to copy the new content element and paste it on the same page in another position.
    4) Open the moved / copied content element and check the setting in the Language tab. The language has now been reset to “Default [0]”.
    See attached video for a demonstration of steps 1) – 4).

  3. Riccardo De Contardi commented and changed status Needs Feedback New removed the assignee <span data-processor="relativetime" data-value="2019-03-13T22:33:26+00:00" > 03/13/19, 22:33 </span>

    OK I have been able to reproduce it with the steps you gave me with 10.0.0-dev

    1) TYPO3 with two languages (ITALIAN,default and ENGLISH (uid=1)
    2) In the default language, create a page “test”; it is not necessary to translate it
    3) create a content element of any type (e.g. headline) and set language = all (-1); save and close

    Test 1

    - In the page view, click on the element icon, select “copy” and paste it on the same page

    Result: the copied CE has language=0

    Test 2

    - drag the “original” content element below the new created one

    Result: the “original” content element now has language=0, too

  4. Andreas Kießling commented <span data-processor="relativetime" data-value="2019-05-22T14:20:39+00:00" > 05/22/19, 14:20 </span>

    A client reported this error for a 8.7 setup too: when he moves elements with language all, it gets reset to language 0

    The responsible code is here: https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_8-7/typo3/sysext/backend/Resources/Public/JavaScript/LayoutModule/DragDrop.js#L156
    It grabs the language from the target column and sets this for the pasted element

    The code in master seems to be located here: https://github.com/TYPO3/TYPO3.CMS/blob/0c08564796ee907640896ef12f3baed708e28583/Build/Sources/TypeScript/backend/Resources/Public/TypeScript/LayoutModule/Paste.ts#L164

  5. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2019-10-15T00:35:18+00:00" > 10/15/19, 00:35 </span>

    This is still reproducible on 10.2.0-dev

  6. Sybille Peters commented <span data-processor="relativetime" data-value="2023-01-14T20:36:55+00:00" > 01/14/23, 20:36 </span>

    Could reproduce this in latest main (v12) with Riccardo’s description https://forge.typo3.org/issues/83533#note-3 (just copy a content element with sys_language_uid = -1)

  7. Riccardo De Contardi commented and changed TYPO3 Version 8 12 PHP Version 7.2 8.1 <span data-processor="relativetime" data-value="2024-04-09T18:49:04+00:00" > 04/09/24, 18:49 </span>

    I repeated the test I wrote on comment 3 on TYPO3 12.4.14 and 13.1.0-dev (latest main) and the result is different (!)

    1) TYPO3 with two languages (ITALIAN,default and ENGLISH (uid=1)
    2) In the default language, create a page “test”; it is not necessary to translate it
    3) create a content element of any type (e.g. headline) and set language = all (-1); save and close

    Test 1

    - In the page view, click on the element icon, select “copy” and paste it on the same page

    Result: the copied CE has language=0

    Test 2

    - drag the “original” content element below the new created one

    Result:

    Both Content elments now have language = -1 (All) !! (You have to refresh the page to see the change)

    I raise the TYPO3 version to 12

  8. Astrid Haubold commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-05-05T10:20:07+00:00" > 05/05/25, 10:20 </span>

    Applied in changeset commit:140669d94e5dbdb2bef61195e8c0c880f1a42215.

  9. Gerrit Code Review pushed patch set 4 for main to change 89068 status Closed Under Review <span data-processor="relativetime" data-value="2026-04-22T06:55:03+00:00" > 04/22/26, 06:55 </span>