Project

General

Profile

Actions

Bug #87851

closed

Copy of localized object has wrong l18n_parent

Added by König David about 5 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2019-03-06
Due date:
% Done:

0%

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

Description

If you copy a translated element and paste it in to the same or another site, the field l18n_parent (or in extensions l10n_parent) is filled with the value of the original object (before_paste.png).

So the new copy is not shown in the backend (after_paste.png). This means that it can't be deleted by an editor.
The copy exists only in the database (database_lookup.png).

In TYPO3 8 and lower you the option mod.web_list.enableLocalizationView can be set, which prevents the user from copying localized records.
Unfortunately, this option has been removed/does not work in TYPO3 9LTS.


Files

before_paste.png (29.7 KB) before_paste.png I paste the localized tt_content-element König David, 2019-03-06 17:18
after_paste.png (28.2 KB) after_paste.png Its not shown at all after paste König David, 2019-03-06 17:18
database_lookup.png (26.3 KB) database_lookup.png Expect in database König David, 2019-03-06 17:18
Actions #1

Updated by Susanne Moog about 5 years ago

  • Category set to DataHandler aka TCEmain
Actions #2

Updated by Riccardo De Contardi about 4 years ago

Still reproducible with 10.4.0-dev (latest master)

Actions #3

Updated by Riccardo De Contardi about 3 years ago

  • Status changed from New to Needs Feedback

I think that this issue has been solved;

I tried the following test with both 10.4.14 and 11.2.0-dev (latest master)

Prerequisites

- TYPO3 with two languages defined: Italian(0) and English (1)
- A page " test 1 " in both languages
- A page " Test 2 " in both languages
- Install Tool > Settings > Configuration Presets > Debug settings: Debug

Test procedure

1) Page " test 1 " > Page view > language: Italian > create a new content element AAAAA (ID=17)
2) Translate it (Connected mode) > [Translate to English:] AAAAA (ID=18)
2.1) If you edit the [Translate to English:] AAAAA (ID=18) record > Tab language > you will see that Transl.Orig[l18n_parent] is "AAAAA [ID=17]"

3) Page " test 1 " > list view > on the AAAAA record, press the "Copy" button
4) Go to page Test 2 > list view > press the "Paste" button on the top bar

Results

1) The "Page content" table is filled with two new records:

  • AAAAA (ID=19)
  • [Translate to English:] AAAAA (ID=20)

2) the record AAAAA (ID=19) is in italian
3) the record [Translate to English:] AAAAA (ID=20) is in english, and its parent is AAAAA (ID=19)!
3.1) If you edit the [Translate to English:] AAAAA (ID=20) record > Tab language > you will see that Transl.Orig[l18n_parent] is "AAAAA [ID=19]"

Is this test sufficient? A different test should be performed? Am I missing something?

Actions #4

Updated by Christian Kuhn about 2 years ago

  • Status changed from Needs Feedback to Closed

hey. it seems as if this has been resolved meanwhile. i'll take the freedom to close the issue for now. if the problem still exists, let's start with a fresh issue.

Actions

Also available in: Atom PDF