[BUGFIX] Ensure "pid" and "parentid" of pages - inline fields are correct
When doing translations with pages and inline elements (e.g. pages.media), there is an inconsistency when an additional inline element is added to the TRANSLATED page (e.g. language=1). Current (wrong) when adding a translation to a page - localized IRRE children get pid = default page ID (correct) - localized IRRE children only localization get parentid = default page ID (should be translated page ID) Current (wrong) behaviour when adding a IRRE child only available in a translation: - parentid gets localized page => correct - pid gets set to localized page => must be default language The patch corrects this behaviour by always set - the relation (parentid) to the localized page ID - the page ID (pid) to the default language page ID Additionally, when adding an Inline element (IRRE) via AJAX on page properties, the PID gets resolved correctly to be sent to DataHandler. Resolves: #82983 Releases: master Change-Id: Id8bf39524ee6...
Showing
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInline.php 4 additions, 0 deletions...ysext/backend/Classes/Form/FormDataProvider/TcaInline.php
- typo3/sysext/core/Classes/DataHandling/DataHandler.php 12 additions, 1 deletiontypo3/sysext/core/Classes/DataHandling/DataHandler.php
- typo3/sysext/core/Tests/Functional/DataHandling/IRRE/ForeignField/AbstractActionTestCase.php 18 additions, 0 deletions...DataHandling/IRRE/ForeignField/AbstractActionTestCase.php
- typo3/sysext/core/Tests/Functional/DataHandling/IRRE/ForeignField/Modify/ActionTest.php 18 additions, 0 deletions...onal/DataHandling/IRRE/ForeignField/Modify/ActionTest.php
- typo3/sysext/core/Tests/Functional/DataHandling/IRRE/ForeignField/Modify/DataSet/localizePageWithSynchronizationAndCustomLocalizedHotel.csv 15 additions, 0 deletions...ocalizePageWithSynchronizationAndCustomLocalizedHotel.csv
Please register or sign in to comment