From d533bcd51f18dd9dd6b986dbce22163945715ed8 Mon Sep 17 00:00:00 2001
From: Anja Leichsenring <aleichsenring@ab-softlab.de>
Date: Thu, 18 Nov 2021 13:20:02 +0100
Subject: [PATCH] [BUGFIX] Use correct l10n_parent relation in
 ext:test_datahandler
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

There was a copy&paste leftover, leading to translated records
being related to the wrong table.

By fixing the wrong TCA configuration, sys_refindex entries in
several test fixtures had to be adjusted.

Resolves: #96025
Releases: master, 11.5
Change-Id: I197688e80e98a45a595e5304a49249ecfdcbfe91
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72230
Tested-by: core-ci <typo3@b13.com>
Tested-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
---
 ...WLocalizeReferencesAtParentLocalization.csv | 18 +++++++++---------
 .../DataSet/localizeElementOfRelation.csv      |  2 +-
 ...WLocalizeReferencesAtParentLocalization.csv |  4 ++--
 .../DataSet/localizeElementOfRelation.csv      |  2 +-
 .../TCA/tx_testdatahandler_element.php         |  8 ++++----
 .../Private/Language/locallang_db.xlf          | 13 +++++++++++++
 ...WLocalizeReferencesAtParentLocalization.csv |  4 ++--
 ...WLocalizeReferencesAtParentLocalization.csv |  4 ++--
 .../DataSet/localizeElementOfRelation.csv      |  2 +-
 ...WLocalizeReferencesAtParentLocalization.csv |  4 ++--
 .../DataSet/localizeElementOfRelation.csv      |  2 +-
 ...WLocalizeReferencesAtParentLocalization.csv |  4 ++--
 .../DataSet/localizeElementOfRelation.csv      |  2 +-
 ...WLocalizeReferencesAtParentLocalization.csv |  4 ++--
 ...WLocalizeReferencesAtParentLocalization.csv |  4 ++--
 .../DataSet/localizeElementOfRelation.csv      |  2 +-
 ...WLocalizeReferencesAtParentLocalization.csv |  4 ++--
 .../DataSet/localizeElementOfRelation.csv      |  2 +-
 ...WLocalizeReferencesAtParentLocalization.csv |  4 ++--
 .../DataSet/localizeElementOfRelation.csv      |  2 +-
 20 files changed, 52 insertions(+), 39 deletions(-)
 create mode 100644 typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_datahandler/Resources/Private/Language/locallang_db.xlf

diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/Group/Modify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv b/typo3/sysext/core/Tests/Functional/DataHandling/Group/Modify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
index decb55ca754f..3b216a424f1c 100644
--- a/typo3/sysext/core/Tests/Functional/DataHandling/Group/Modify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
+++ b/typo3/sysext/core/Tests/Functional/DataHandling/Group/Modify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
@@ -12,22 +12,22 @@
 ,"uid","pid","sorting","deleted","sys_language_uid","l18n_parent","t3_origuid","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","header","tx_testdatahandler_group","l10n_state"
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1","1,2","\NULL"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2","2,3","\NULL"
-,299,89,768,0,1,298,298,0,0,0,0,"[Translate to Dansk:] Regular Element #2","4,5",\NULL
+,299,89,768,0,1,298,298,0,0,0,0,"[Translate to Dansk:] Regular Element #2","4,5","\NULL"
 "tx_testdatahandler_element",,,,,,,,,,,,,,
 ,"uid","pid","sorting","deleted","sys_language_uid","l10n_parent","t3_origuid","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","title",,
 ,1,89,256,0,0,0,0,0,0,0,0,"Element #1",,
 ,2,89,512,0,0,0,0,0,0,0,0,"Element #2",,
 ,3,89,768,0,0,0,0,0,0,0,0,"Element #3",,
-,4,89,640,0,1,2,2,0,0,0,0,[Translate to Dansk:] Element #2,,
-,5,89,704,0,1,3,3,0,0,0,0,[Translate to Dansk:] Element #3,,
+,4,89,640,0,1,2,2,0,0,0,0,"[Translate to Dansk:] Element #2",,
+,5,89,704,0,1,3,3,0,0,0,0,"[Translate to Dansk:] Element #3",,
 "sys_refindex",,,,,,,,,,,,,,
 ,"hash","tablename","recuid","field","flexpointer","softref_key","softref_id","sorting","workspace","ref_table","ref_uid","ref_string",,
-,f515f0bdd8f34859b62a8b18b054ff76,"tt_content",299,"tx_testdatahandler_group",,,,1,0,"tx_testdatahandler_element",5,,,
-,1cb0ed7f41fb91341634941ed4f6746f,"tt_content",299,"tx_testdatahandler_group",,,,0,0,"tx_testdatahandler_element",4,,,
+,"f515f0bdd8f34859b62a8b18b054ff76","tt_content",299,"tx_testdatahandler_group",,,,1,0,"tx_testdatahandler_element",5,,,
+,"1cb0ed7f41fb91341634941ed4f6746f","tt_content",299,"tx_testdatahandler_group",,,,0,0,"tx_testdatahandler_element",4,,,
 ,"3f113b20cdf1b3be96048a257872a178","tt_content",297,"tx_testdatahandler_group",,,,1,0,"tx_testdatahandler_element",2,,,
 ,"6dc66af7d395e5be3c87fc4e13c0455c","tt_content",299,"l18n_parent",,,,0,0,"tt_content",298,,,
 ,"70386199b2e7d7e3be07ec7b501f411d","tt_content",297,"tx_testdatahandler_group",,,,0,0,"tx_testdatahandler_element",1,,,
-,0c81d9b3f27460380a2e442fdfa0649d,"tt_content",298,"tx_testdatahandler_group",,,,0,0,"tx_testdatahandler_element",2,,,
-,8f3d6a0de293045066188fc790f4805f,"tt_content",298,"tx_testdatahandler_group",,,,1,0,"tx_testdatahandler_element",3,,,
-,a5a8bb1991a2c199cbe80e3e37844190,tx_testdatahandler_element,4,l10n_parent,,,,0,0,tx_irretutorial_1nff_hotel,2,,,
-,f32f8b540bfad29e0cc31794bb04c948,tx_testdatahandler_element,5,l10n_parent,,,,0,0,tx_irretutorial_1nff_hotel,3,,,
+,"0c81d9b3f27460380a2e442fdfa0649d","tt_content",298,"tx_testdatahandler_group",,,,0,0,"tx_testdatahandler_element",2,,,
+,"8f3d6a0de293045066188fc790f4805f","tt_content",298,"tx_testdatahandler_group",,,,1,0,"tx_testdatahandler_element",3,,,
+,"3259213b352acc30dc7ed5478dd99d5a","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_testdatahandler_element",2,,,
+,"377d7a2b8dcf42c1742aedd1caa74b7a","tx_testdatahandler_element",5,"l10n_parent",,,,0,0,"tx_testdatahandler_element",3,,,
diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/Group/Modify/DataSet/localizeElementOfRelation.csv b/typo3/sysext/core/Tests/Functional/DataHandling/Group/Modify/DataSet/localizeElementOfRelation.csv
index d2e9a7464238..55f1a62a5eca 100644
--- a/typo3/sysext/core/Tests/Functional/DataHandling/Group/Modify/DataSet/localizeElementOfRelation.csv
+++ b/typo3/sysext/core/Tests/Functional/DataHandling/Group/Modify/DataSet/localizeElementOfRelation.csv
@@ -26,4 +26,4 @@
 ,"583b9974d1df1d9efb695cdabfe53a73","pages",91,"l10n_parent",,,,0,0,"pages",89,,
 ,"70386199b2e7d7e3be07ec7b501f411d","tt_content",297,"tx_testdatahandler_group",,,,0,0,"tx_testdatahandler_element",1,,
 ,"8f3d6a0de293045066188fc790f4805f","tt_content",298,"tx_testdatahandler_group",,,,1,0,"tx_testdatahandler_element",3,,
-,"e6d2afeb8da9fb54ceb83ae73d85e964","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_irretutorial_1nff_hotel",1,,
+,"ce9431066cc6f79638438de9977f6001","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_testdatahandler_element",1,,
diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/Select/Modify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv b/typo3/sysext/core/Tests/Functional/DataHandling/Select/Modify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
index 14e061c99b75..82b49df17775 100644
--- a/typo3/sysext/core/Tests/Functional/DataHandling/Select/Modify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
+++ b/typo3/sysext/core/Tests/Functional/DataHandling/Select/Modify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
@@ -27,7 +27,7 @@
 ,"fb9a4c46d91b175ee7503de71523c849","tt_content",298,"tx_testdatahandler_select",,,,0,0,"tx_testdatahandler_element",2,,
 ,"f54bf3a4ddc51685c0586b31015312cb","tt_content",298,"tx_testdatahandler_select",,,,1,0,"tx_testdatahandler_element",3,,
 ,"6dc66af7d395e5be3c87fc4e13c0455c","tt_content",299,"l18n_parent",,,,0,0,"tt_content",298,,
-,"a5a8bb1991a2c199cbe80e3e37844190","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_irretutorial_1nff_hotel",2,,
 ,"b76b4fe0aa225d718110c5d667c1d8b1","tt_content",299,"tx_testdatahandler_select",,,,0,0,"tx_testdatahandler_element",4,,
 ,"d6055b07069ed11ff1463f05f096bf6a","tt_content",299,"tx_testdatahandler_select",,,,1,0,"tx_testdatahandler_element",5,,
-,"f32f8b540bfad29e0cc31794bb04c948","tx_testdatahandler_element",5,"l10n_parent",,,,0,0,"tx_irretutorial_1nff_hotel",3,,
+,"3259213b352acc30dc7ed5478dd99d5a","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_testdatahandler_element",2,,
+,"377d7a2b8dcf42c1742aedd1caa74b7a","tx_testdatahandler_element",5,"l10n_parent",,,,0,0,"tx_testdatahandler_element",3,,
diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/Select/Modify/DataSet/localizeElementOfRelation.csv b/typo3/sysext/core/Tests/Functional/DataHandling/Select/Modify/DataSet/localizeElementOfRelation.csv
index 89ac1b715caa..f02262d51ac7 100644
--- a/typo3/sysext/core/Tests/Functional/DataHandling/Select/Modify/DataSet/localizeElementOfRelation.csv
+++ b/typo3/sysext/core/Tests/Functional/DataHandling/Select/Modify/DataSet/localizeElementOfRelation.csv
@@ -26,4 +26,4 @@
 ,"fb9a4c46d91b175ee7503de71523c849","tt_content",298,"tx_testdatahandler_select",,,,0,0,"tx_testdatahandler_element",2,,
 ,"f54bf3a4ddc51685c0586b31015312cb","tt_content",298,"tx_testdatahandler_select",,,,1,0,"tx_testdatahandler_element",3,,
 ,"583b9974d1df1d9efb695cdabfe53a73","pages",91,"l10n_parent",,,,0,0,"pages",89,,
-,"e6d2afeb8da9fb54ceb83ae73d85e964","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_irretutorial_1nff_hotel",1,,
+,"ce9431066cc6f79638438de9977f6001","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_testdatahandler_element",1,,
diff --git a/typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_datahandler/Configuration/TCA/tx_testdatahandler_element.php b/typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_datahandler/Configuration/TCA/tx_testdatahandler_element.php
index 8a72d328feb4..31ac23e51d8b 100644
--- a/typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_datahandler/Configuration/TCA/tx_testdatahandler_element.php
+++ b/typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_datahandler/Configuration/TCA/tx_testdatahandler_element.php
@@ -38,8 +38,8 @@ return [
                 'items' => [
                     ['', 0],
                 ],
-                'foreign_table'       => 'tx_irretutorial_1nff_hotel',
-                'foreign_table_where' => 'AND {#tx_irretutorial_1nff_hotel}.{#pid}=###CURRENT_PID### AND {#tx_irretutorial_1nff_hotel}.{#sys_language_uid} IN (-1,0)',
+                'foreign_table'       => 'tx_testdatahandler_element',
+                'foreign_table_where' => 'AND {#tx_testdatahandler_element}.{#pid}=###CURRENT_PID### AND {#tx_testdatahandler_element}.{#sys_language_uid} IN (-1,0)',
                 'default' => 0,
             ],
         ],
@@ -71,8 +71,8 @@ return [
     'types' => [
         '0' => [
             'showitem' =>
-                '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xlf:tabs.general, title,' .
-                '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xlf:tabs.visibility, sys_language_uid, l10n_parent, l10n_diffsource, hidden',
+                '--div--;LLL:EXT:test_datahandler/Resources/Private/Language/locallang_db.xlf:tabs.general, title,' .
+                '--div--;LLL:EXT:test_datahandler/Resources/Private/Language/locallang_db.xlf:tabs.visibility, sys_language_uid, l10n_parent, l10n_diffsource, hidden',
         ],
     ],
     'palettes' => [
diff --git a/typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_datahandler/Resources/Private/Language/locallang_db.xlf b/typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_datahandler/Resources/Private/Language/locallang_db.xlf
new file mode 100644
index 000000000000..1fe76579244d
--- /dev/null
+++ b/typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_datahandler/Resources/Private/Language/locallang_db.xlf
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
+	<file source-language="en" datatype="plaintext" original="EXT:irre_tutorial/Resources/Private/Language/locallang_db.xlf" date="2020-06-03T15:50:00Z" product-name="test_datahandler">
+		<body>
+			<trans-unit id="tabs.general" resname="tabs.general">
+				<source>General</source>
+			</trans-unit>
+			<trans-unit id="tabs.visibility" resname="tabs.visibility">
+				<source>Visibility</source>
+			</trans-unit>
+		</body>
+	</file>
+</xliff>
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Discard/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Discard/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
index c7cddecc7cb0..1f5f9053e9f6 100644
--- a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Discard/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
+++ b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Discard/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
@@ -35,5 +35,5 @@
 ,"8f3d6a0de293045066188fc790f4805f","tt_content",298,"tx_testdatahandler_group",,,,1,0,"tx_testdatahandler_element",3,,,,,,
 ,"25426f92d44dd2ccf416108462b446e3","sys_workspace",1,"custom_stages",,,,0,0,"sys_workspace_stage",1,,,,,,
 ,"01a3ce8c4e3b2bb1aa439dc29081f996","sys_workspace_stage",1,"responsible_persons",,,,0,0,"be_users",3,,,,,,
-,"1ebdaf9cf728f19cd80c563e4c63a22e","tx_testdatahandler_element",4,"l10n_parent",,,,0,1,"tx_irretutorial_1nff_hotel",2,,,,,,
-,"4ff10724a18d4ed5323ad19158f4e807","tx_testdatahandler_element",5,"l10n_parent",,,,0,1,"tx_irretutorial_1nff_hotel",3,,,,,,
+,"8cb8b6f632a6d58b77b1a90e4eccbb5e","tx_testdatahandler_element",4,"l10n_parent",,,,0,1,"tx_testdatahandler_element",2,,,,,,
+,"3c12830cf8640fb026d6c99f6193ad45","tx_testdatahandler_element",5,"l10n_parent",,,,0,1,"tx_testdatahandler_element",3,,,,,,
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Modify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Modify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
index cf92be70c643..4286e34c8e6f 100644
--- a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Modify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
+++ b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Modify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
@@ -35,8 +35,8 @@
 ,"8f3d6a0de293045066188fc790f4805f","tt_content",298,"tx_testdatahandler_group",,,,1,0,"tx_testdatahandler_element",3,,,,,,
 ,"25426f92d44dd2ccf416108462b446e3","sys_workspace",1,"custom_stages",,,,0,0,"sys_workspace_stage",1,,,,,,
 ,"01a3ce8c4e3b2bb1aa439dc29081f996","sys_workspace_stage",1,"responsible_persons",,,,0,0,"be_users",3,,,,,,
-,"1ebdaf9cf728f19cd80c563e4c63a22e","tx_testdatahandler_element",4,"l10n_parent",,,,0,1,"tx_irretutorial_1nff_hotel",2,,,,,,
-,"4ff10724a18d4ed5323ad19158f4e807","tx_testdatahandler_element",5,"l10n_parent",,,,0,1,"tx_irretutorial_1nff_hotel",3,,,,,,
+,"8cb8b6f632a6d58b77b1a90e4eccbb5e","tx_testdatahandler_element",4,"l10n_parent",,,,0,1,"tx_testdatahandler_element",2,,,,,,
+,"3c12830cf8640fb026d6c99f6193ad45","tx_testdatahandler_element",5,"l10n_parent",,,,0,1,"tx_testdatahandler_element",3,,,,,,
 ,"e4afda9b67d6ad42e03f5c797250235d","tt_content",299,"l18n_parent",,,,0,1,"tt_content",298,,,,,,
 ,"082c0aa7e065364d191b9724399ca963","tt_content",299,"tx_testdatahandler_group",,,,0,1,"tx_testdatahandler_element",4,,,,,,
 ,"a01b22837858336bb73319aae5cdbda2","tt_content",299,"tx_testdatahandler_group",,,,1,1,"tx_testdatahandler_element",5,,,,,,
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Modify/DataSet/localizeElementOfRelation.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Modify/DataSet/localizeElementOfRelation.csv
index 3d53ff4ee338..fb3a82f3173d 100644
--- a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Modify/DataSet/localizeElementOfRelation.csv
+++ b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Modify/DataSet/localizeElementOfRelation.csv
@@ -35,4 +35,4 @@
 ,"25426f92d44dd2ccf416108462b446e3","sys_workspace",1,"custom_stages",,,,0,0,"sys_workspace_stage",1,,,,,,
 ,"01a3ce8c4e3b2bb1aa439dc29081f996","sys_workspace_stage",1,"responsible_persons",,,,0,0,"be_users",3,,,,,,
 ,"560d1e59437906ce8ecd07cbb8b61650","pages",91,"l10n_parent",,,,0,1,"pages",89,,,,,,
-,"6cbe530f070905e764e858bfea02a82b","tx_testdatahandler_element",4,"l10n_parent",,,,0,1,"tx_irretutorial_1nff_hotel",1,,,,,,
+,"74af82bfdc57ad7173b01693c1ccb1da","tx_testdatahandler_element",4,"l10n_parent",,,,0,1,"tx_testdatahandler_element",1,,,,,,
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Publish/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Publish/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
index 62ffe6a75ebb..40eadde1d73c 100644
--- a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Publish/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
+++ b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Publish/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
@@ -36,8 +36,8 @@
 ,"8f3d6a0de293045066188fc790f4805f","tt_content",298,"tx_testdatahandler_group",,,,1,0,"tx_testdatahandler_element",3,,,,,,
 ,"25426f92d44dd2ccf416108462b446e3","sys_workspace",1,"custom_stages",,,,0,0,"sys_workspace_stage",1,,,,,,
 ,"01a3ce8c4e3b2bb1aa439dc29081f996","sys_workspace_stage",1,"responsible_persons",,,,0,0,"be_users",3,,,,,,
-,"1ebdaf9cf728f19cd80c563e4c63a22e","tx_testdatahandler_element",4,"l10n_parent",,,,0,1,"tx_irretutorial_1nff_hotel",2,,,,,,
-,"4ff10724a18d4ed5323ad19158f4e807","tx_testdatahandler_element",5,"l10n_parent",,,,0,1,"tx_irretutorial_1nff_hotel",3,,,,,,
+,"8cb8b6f632a6d58b77b1a90e4eccbb5e","tx_testdatahandler_element",4,"l10n_parent",,,,0,1,"tx_testdatahandler_element",2,,,,,,
+,"3c12830cf8640fb026d6c99f6193ad45","tx_testdatahandler_element",5,"l10n_parent",,,,0,1,"tx_testdatahandler_element",3,,,,,,
 ,"6dc66af7d395e5be3c87fc4e13c0455c","tt_content",299,"l18n_parent",,,,0,0,"tt_content",298,,,,,,
 ,"1cb0ed7f41fb91341634941ed4f6746f","tt_content",299,"tx_testdatahandler_group",,,,0,0,"tx_testdatahandler_element",4,,,,,,
 ,"f515f0bdd8f34859b62a8b18b054ff76","tt_content",299,"tx_testdatahandler_group",,,,1,0,"tx_testdatahandler_element",5,,,,,,
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Publish/DataSet/localizeElementOfRelation.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Publish/DataSet/localizeElementOfRelation.csv
index ace2a5318143..83b2f8922c75 100644
--- a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Publish/DataSet/localizeElementOfRelation.csv
+++ b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Publish/DataSet/localizeElementOfRelation.csv
@@ -35,4 +35,4 @@
 ,"25426f92d44dd2ccf416108462b446e3","sys_workspace",1,"custom_stages",,,,0,0,"sys_workspace_stage",1,,,,,,
 ,"01a3ce8c4e3b2bb1aa439dc29081f996","sys_workspace_stage",1,"responsible_persons",,,,0,0,"be_users",3,,,,,,
 ,"583b9974d1df1d9efb695cdabfe53a73","pages",91,"l10n_parent",,,,0,0,"pages",89,,,,,,
-,"e6d2afeb8da9fb54ceb83ae73d85e964","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_irretutorial_1nff_hotel",1,,,,,,
+,"ce9431066cc6f79638438de9977f6001","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_testdatahandler_element",1,,,,,,
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/PublishAll/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/PublishAll/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
index 5112b345825b..ddd0d222b90a 100644
--- a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/PublishAll/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
+++ b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/PublishAll/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
@@ -35,8 +35,8 @@
 ,"8f3d6a0de293045066188fc790f4805f","tt_content",298,"tx_testdatahandler_group",,,,1,0,"tx_testdatahandler_element",3,,,,,,
 ,"25426f92d44dd2ccf416108462b446e3","sys_workspace",1,"custom_stages",,,,0,0,"sys_workspace_stage",1,,,,,,
 ,"01a3ce8c4e3b2bb1aa439dc29081f996","sys_workspace_stage",1,"responsible_persons",,,,0,0,"be_users",3,,,,,,
-,"a5a8bb1991a2c199cbe80e3e37844190","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_irretutorial_1nff_hotel",2,,,,,,
-,"f32f8b540bfad29e0cc31794bb04c948","tx_testdatahandler_element",5,"l10n_parent",,,,0,0,"tx_irretutorial_1nff_hotel",3,,,,,,
+,"3259213b352acc30dc7ed5478dd99d5a","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_testdatahandler_element",2,,,,,,
+,"377d7a2b8dcf42c1742aedd1caa74b7a","tx_testdatahandler_element",5,"l10n_parent",,,,0,0,"tx_testdatahandler_element",3,,,,,,
 ,"6dc66af7d395e5be3c87fc4e13c0455c","tt_content",299,"l18n_parent",,,,0,0,"tt_content",298,,,,,,
 ,"1cb0ed7f41fb91341634941ed4f6746f","tt_content",299,"tx_testdatahandler_group",,,,0,0,"tx_testdatahandler_element",4,,,,,,
 ,"f515f0bdd8f34859b62a8b18b054ff76","tt_content",299,"tx_testdatahandler_group",,,,1,0,"tx_testdatahandler_element",5,,,,,,
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/PublishAll/DataSet/localizeElementOfRelation.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/PublishAll/DataSet/localizeElementOfRelation.csv
index ace2a5318143..83b2f8922c75 100644
--- a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/PublishAll/DataSet/localizeElementOfRelation.csv
+++ b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/PublishAll/DataSet/localizeElementOfRelation.csv
@@ -35,4 +35,4 @@
 ,"25426f92d44dd2ccf416108462b446e3","sys_workspace",1,"custom_stages",,,,0,0,"sys_workspace_stage",1,,,,,,
 ,"01a3ce8c4e3b2bb1aa439dc29081f996","sys_workspace_stage",1,"responsible_persons",,,,0,0,"be_users",3,,,,,,
 ,"583b9974d1df1d9efb695cdabfe53a73","pages",91,"l10n_parent",,,,0,0,"pages",89,,,,,,
-,"e6d2afeb8da9fb54ceb83ae73d85e964","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_irretutorial_1nff_hotel",1,,,,,,
+,"ce9431066cc6f79638438de9977f6001","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_testdatahandler_element",1,,,,,,
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Discard/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Discard/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
index 9b7f28661ece..36a979bf83eb 100644
--- a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Discard/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
+++ b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Discard/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
@@ -35,5 +35,5 @@
 ,"f54bf3a4ddc51685c0586b31015312cb","tt_content",298,"tx_testdatahandler_select",,,,1,0,"tx_testdatahandler_element",3,,,,,,
 ,"25426f92d44dd2ccf416108462b446e3","sys_workspace",1,"custom_stages",,,,0,0,"sys_workspace_stage",1,,,,,,
 ,"01a3ce8c4e3b2bb1aa439dc29081f996","sys_workspace_stage",1,"responsible_persons",,,,0,0,"be_users",3,,,,,,
-,"1ebdaf9cf728f19cd80c563e4c63a22e","tx_testdatahandler_element",4,"l10n_parent",,,,0,1,"tx_irretutorial_1nff_hotel",2,,,,,,
-,"4ff10724a18d4ed5323ad19158f4e807","tx_testdatahandler_element",5,"l10n_parent",,,,0,1,"tx_irretutorial_1nff_hotel",3,,,,,,
+,"8cb8b6f632a6d58b77b1a90e4eccbb5e","tx_testdatahandler_element",4,"l10n_parent",,,,0,1,"tx_testdatahandler_element",2,,,,,,
+,"3c12830cf8640fb026d6c99f6193ad45","tx_testdatahandler_element",5,"l10n_parent",,,,0,1,"tx_testdatahandler_element",3,,,,,,
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Modify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Modify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
index c4bcb40b085c..ec99a37137f2 100644
--- a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Modify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
+++ b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Modify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
@@ -35,8 +35,8 @@
 ,"f54bf3a4ddc51685c0586b31015312cb","tt_content",298,"tx_testdatahandler_select",,,,1,0,"tx_testdatahandler_element",3,,,,,,
 ,"25426f92d44dd2ccf416108462b446e3","sys_workspace",1,"custom_stages",,,,0,0,"sys_workspace_stage",1,,,,,,
 ,"01a3ce8c4e3b2bb1aa439dc29081f996","sys_workspace_stage",1,"responsible_persons",,,,0,0,"be_users",3,,,,,,
-,"1ebdaf9cf728f19cd80c563e4c63a22e","tx_testdatahandler_element",4,"l10n_parent",,,,0,1,"tx_irretutorial_1nff_hotel",2,,,,,,
-,"4ff10724a18d4ed5323ad19158f4e807","tx_testdatahandler_element",5,"l10n_parent",,,,0,1,"tx_irretutorial_1nff_hotel",3,,,,,,
+,"8cb8b6f632a6d58b77b1a90e4eccbb5e","tx_testdatahandler_element",4,"l10n_parent",,,,0,1,"tx_testdatahandler_element",2,,,,,,
+,"3c12830cf8640fb026d6c99f6193ad45","tx_testdatahandler_element",5,"l10n_parent",,,,0,1,"tx_testdatahandler_element",3,,,,,,
 ,"e4afda9b67d6ad42e03f5c797250235d","tt_content",299,"l18n_parent",,,,0,1,"tt_content",298,,,,,,
 ,"de7643278f82017bce926bf4565c4cb9","tt_content",299,"tx_testdatahandler_select",,,,0,1,"tx_testdatahandler_element",4,,,,,,
 ,"af5b779dd2258037770a0febe6d0054f","tt_content",299,"tx_testdatahandler_select",,,,1,1,"tx_testdatahandler_element",5,,,,,,
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Modify/DataSet/localizeElementOfRelation.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Modify/DataSet/localizeElementOfRelation.csv
index 41b5b1d6b705..079c120dd70e 100644
--- a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Modify/DataSet/localizeElementOfRelation.csv
+++ b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Modify/DataSet/localizeElementOfRelation.csv
@@ -24,7 +24,7 @@
 ,"01a3ce8c4e3b2bb1aa439dc29081f996","sys_workspace_stage",1,"responsible_persons",,,,0,0,"be_users",3,
 ,"25426f92d44dd2ccf416108462b446e3","sys_workspace",1,"custom_stages",,,,0,0,"sys_workspace_stage",1,
 ,"560d1e59437906ce8ecd07cbb8b61650","pages",91,"l10n_parent",,,,0,1,"pages",89,
-,"6cbe530f070905e764e858bfea02a82b","tx_testdatahandler_element",4,"l10n_parent",,,,0,1,"tx_irretutorial_1nff_hotel",1,
+,"74af82bfdc57ad7173b01693c1ccb1da","tx_testdatahandler_element",4,"l10n_parent",,,,0,1,"tx_testdatahandler_element",1,
 ,"d333521843e8774369e112581bd4643b","tt_content",297,"tx_testdatahandler_select",,,,1,0,"tx_testdatahandler_element",2,
 ,"d7065184b2d510f3fada875169bc8c57","tt_content",297,"tx_testdatahandler_select",,,,0,0,"tx_testdatahandler_element",1,
 ,"f54bf3a4ddc51685c0586b31015312cb","tt_content",298,"tx_testdatahandler_select",,,,1,0,"tx_testdatahandler_element",3,
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Publish/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Publish/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
index 7de8cbe98dbf..603787438614 100644
--- a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Publish/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
+++ b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Publish/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
@@ -36,8 +36,8 @@
 ,"f54bf3a4ddc51685c0586b31015312cb","tt_content",298,"tx_testdatahandler_select",,,,1,0,"tx_testdatahandler_element",3,,,,,,
 ,"25426f92d44dd2ccf416108462b446e3","sys_workspace",1,"custom_stages",,,,0,0,"sys_workspace_stage",1,,,,,,
 ,"01a3ce8c4e3b2bb1aa439dc29081f996","sys_workspace_stage",1,"responsible_persons",,,,0,0,"be_users",3,,,,,,
-,"1ebdaf9cf728f19cd80c563e4c63a22e","tx_testdatahandler_element",4,"l10n_parent",,,,0,1,"tx_irretutorial_1nff_hotel",2,,,,,,
-,"4ff10724a18d4ed5323ad19158f4e807","tx_testdatahandler_element",5,"l10n_parent",,,,0,1,"tx_irretutorial_1nff_hotel",3,,,,,,
+,"8cb8b6f632a6d58b77b1a90e4eccbb5e","tx_testdatahandler_element",4,"l10n_parent",,,,0,1,"tx_testdatahandler_element",2,,,,,,
+,"3c12830cf8640fb026d6c99f6193ad45","tx_testdatahandler_element",5,"l10n_parent",,,,0,1,"tx_testdatahandler_element",3,,,,,,
 ,"6dc66af7d395e5be3c87fc4e13c0455c","tt_content",299,"l18n_parent",,,,0,0,"tt_content",298,,,,,,
 ,"b76b4fe0aa225d718110c5d667c1d8b1","tt_content",299,"tx_testdatahandler_select",,,,0,0,"tx_testdatahandler_element",4,,,,,,
 ,"d6055b07069ed11ff1463f05f096bf6a","tt_content",299,"tx_testdatahandler_select",,,,1,0,"tx_testdatahandler_element",5,,,,,,
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Publish/DataSet/localizeElementOfRelation.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Publish/DataSet/localizeElementOfRelation.csv
index 0651ca134f74..273453bc691d 100644
--- a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Publish/DataSet/localizeElementOfRelation.csv
+++ b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Publish/DataSet/localizeElementOfRelation.csv
@@ -26,6 +26,6 @@
 ,"583b9974d1df1d9efb695cdabfe53a73","pages",91,"l10n_parent",,,,0,0,"pages",89,
 ,"d333521843e8774369e112581bd4643b","tt_content",297,"tx_testdatahandler_select",,,,1,0,"tx_testdatahandler_element",2,
 ,"d7065184b2d510f3fada875169bc8c57","tt_content",297,"tx_testdatahandler_select",,,,0,0,"tx_testdatahandler_element",1,
-,"e6d2afeb8da9fb54ceb83ae73d85e964","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_irretutorial_1nff_hotel",1,
+,"ce9431066cc6f79638438de9977f6001","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_testdatahandler_element",1,
 ,"f54bf3a4ddc51685c0586b31015312cb","tt_content",298,"tx_testdatahandler_select",,,,1,0,"tx_testdatahandler_element",3,
 ,"fb9a4c46d91b175ee7503de71523c849","tt_content",298,"tx_testdatahandler_select",,,,0,0,"tx_testdatahandler_element",2,
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/PublishAll/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/PublishAll/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
index 9c53170d3d77..a926e0fd4ecb 100644
--- a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/PublishAll/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
+++ b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/PublishAll/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv
@@ -38,5 +38,5 @@
 ,"6dc66af7d395e5be3c87fc4e13c0455c","tt_content",299,"l18n_parent",,,,0,0,"tt_content",298,,,,,,
 ,"b76b4fe0aa225d718110c5d667c1d8b1","tt_content",299,"tx_testdatahandler_select",,,,0,0,"tx_testdatahandler_element",4,,,,,,
 ,"d6055b07069ed11ff1463f05f096bf6a","tt_content",299,"tx_testdatahandler_select",,,,1,0,"tx_testdatahandler_element",5,,,,,,
-,"a5a8bb1991a2c199cbe80e3e37844190","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_irretutorial_1nff_hotel",2,,,,,,
-,"f32f8b540bfad29e0cc31794bb04c948","tx_testdatahandler_element",5,"l10n_parent",,,,0,0,"tx_irretutorial_1nff_hotel",3,,,,,,
+,"3259213b352acc30dc7ed5478dd99d5a","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_testdatahandler_element",2,,,,,,
+,"377d7a2b8dcf42c1742aedd1caa74b7a","tx_testdatahandler_element",5,"l10n_parent",,,,0,0,"tx_testdatahandler_element",3,,,,,,
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/PublishAll/DataSet/localizeElementOfRelation.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/PublishAll/DataSet/localizeElementOfRelation.csv
index 0651ca134f74..273453bc691d 100644
--- a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/PublishAll/DataSet/localizeElementOfRelation.csv
+++ b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/PublishAll/DataSet/localizeElementOfRelation.csv
@@ -26,6 +26,6 @@
 ,"583b9974d1df1d9efb695cdabfe53a73","pages",91,"l10n_parent",,,,0,0,"pages",89,
 ,"d333521843e8774369e112581bd4643b","tt_content",297,"tx_testdatahandler_select",,,,1,0,"tx_testdatahandler_element",2,
 ,"d7065184b2d510f3fada875169bc8c57","tt_content",297,"tx_testdatahandler_select",,,,0,0,"tx_testdatahandler_element",1,
-,"e6d2afeb8da9fb54ceb83ae73d85e964","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_irretutorial_1nff_hotel",1,
+,"ce9431066cc6f79638438de9977f6001","tx_testdatahandler_element",4,"l10n_parent",,,,0,0,"tx_testdatahandler_element",1,
 ,"f54bf3a4ddc51685c0586b31015312cb","tt_content",298,"tx_testdatahandler_select",,,,1,0,"tx_testdatahandler_element",3,
 ,"fb9a4c46d91b175ee7503de71523c849","tt_content",298,"tx_testdatahandler_select",,,,0,0,"tx_testdatahandler_element",2,
-- 
GitLab