Bug #87851
closedCopy of localized object has wrong l18n_parent
0%
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
Updated by Susanne Moog over 5 years ago
- Category set to DataHandler aka TCEmain
Updated by Riccardo De Contardi over 4 years ago
Still reproducible with 10.4.0-dev (latest master)
Updated by Riccardo De Contardi over 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?
Updated by Christian Kuhn almost 3 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.