Project

General

Profile

Actions

Bug #83533

open

Copied CE elements loose language [All]

Added by Christian Rieke about 6 years ago. Updated about 1 year ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Localization
Target version:
-
Start date:
2018-01-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

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


Files

multilang_test.mp4 (820 KB) multilang_test.mp4 Christian Rieke, 2019-03-12 23:06

Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #39054: Copied Content Elements incorrectly inherit languageUnder Review2012-07-18

Actions
Actions #1

Updated by Riccardo De Contardi about 5 years ago

  • Status changed from New to Needs Feedback

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.

Actions #2

Updated by Christian Rieke about 5 years ago

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).

Actions #3

Updated by Riccardo De Contardi about 5 years ago

  • Status changed from Needs Feedback to New
  • Assignee deleted (Riccardo De Contardi)

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

Actions #4

Updated by Benni Mack almost 5 years ago

  • Category changed from Language Manager (backend) to Localization
Actions #5

Updated by Andreas Kiessling almost 5 years ago

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

Actions #6

Updated by Riccardo De Contardi over 4 years ago

This is still reproducible on 10.2.0-dev

Actions #7

Updated by Susanne Moog about 4 years ago

  • Sprint Focus set to On Location Sprint
Actions #8

Updated by Riccardo De Contardi almost 4 years ago

  • Related to Bug #39054: Copied Content Elements incorrectly inherit language added
Actions #9

Updated by Oliver Hader over 1 year ago

  • Sprint Focus deleted (On Location Sprint)
Actions #10

Updated by Sybille Peters about 1 year ago

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)

Actions

Also available in: Atom PDF