[BUGFIX] Add correct diff source values to translated record
This change ensures that the original language record diff source (usually in the field l10n_diffsource as configured by transOrigDiffSourceField) is set correctly as soon as a localized record is created. To guard this, an additional test for pages is added, and several DataHandler tests are adjusted. TYPO3 displays the source language value of a field for a translated record. This information field can display a diff, if the source record value was changed. To accomplish this a shadow copy of localizable fields from the source language record is saved in the configurable language diff source field. Localization of a record creates a new record, adding the values of localizable fields value with a prefix and setting needed system fields like parent record id, language id and so on. This is updated if a localized field is changed in the localized language. `\TYPO3\CMS\Core\DataHandling\DataHandler` as the main actor in the backend is respons...
Showing
- typo3/sysext/core/Classes/DataHandling/DataHandler.php 9 additions, 5 deletionstypo3/sysext/core/Classes/DataHandling/DataHandler.php
- typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/DataSet/TranslationDiffSourceTest.csv 4 additions, 0 deletions...andling/DataHandler/DataSet/TranslationDiffSourceTest.csv
- typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/TranslationDiffSourceTest.php 82 additions, 0 deletions...al/DataHandling/DataHandler/TranslationDiffSourceTest.php
- typo3/sysext/core/Tests/Functional/DataScenarios/Group/WorkspacesDiscard/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv 2 additions, 2 deletions...tentOfRelationWLocalizeReferencesAtParentLocalization.csv
- typo3/sysext/core/Tests/Functional/DataScenarios/Group/WorkspacesModify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv 2 additions, 2 deletions...tentOfRelationWLocalizeReferencesAtParentLocalization.csv
- typo3/sysext/core/Tests/Functional/DataScenarios/Group/WorkspacesPublish/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv 2 additions, 2 deletions...tentOfRelationWLocalizeReferencesAtParentLocalization.csv
- typo3/sysext/core/Tests/Functional/DataScenarios/Group/WorkspacesPublishAll/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv 2 additions, 2 deletions...tentOfRelationWLocalizeReferencesAtParentLocalization.csv
- typo3/sysext/core/Tests/Functional/DataScenarios/Select/Modify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv 3 additions, 3 deletions...tentOfRelationWLocalizeReferencesAtParentLocalization.csv
- typo3/sysext/core/Tests/Functional/DataScenarios/Select/WorkspacesDiscard/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv 2 additions, 2 deletions...tentOfRelationWLocalizeReferencesAtParentLocalization.csv
- typo3/sysext/core/Tests/Functional/DataScenarios/Select/WorkspacesModify/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv 2 additions, 2 deletions...tentOfRelationWLocalizeReferencesAtParentLocalization.csv
- typo3/sysext/core/Tests/Functional/DataScenarios/Select/WorkspacesPublish/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv 2 additions, 2 deletions...tentOfRelationWLocalizeReferencesAtParentLocalization.csv
- typo3/sysext/core/Tests/Functional/DataScenarios/Select/WorkspacesPublishAll/DataSet/localizeContentOfRelationWLocalizeReferencesAtParentLocalization.csv 2 additions, 2 deletions...tentOfRelationWLocalizeReferencesAtParentLocalization.csv
Please register or sign in to comment