[BUGFIX] Do not re-sort IRRE children when sorting parent
When PID of the parent record has not changed, child records should not be moved/sorted. Little background helping reviewing the patch: The 2 important changes are made in DataHandler.php line 4603 and DataHandlerHook.php around line 346. In both cases the condition is added checking if the destination PID of the record is the same as current one. In that case, processing of the IRRE children is skipped. All the changes made in the .csv files are reflecting that. To validate them one can compare the content of the csv files with LiveDefaultElements.csv datasets. For example, check that sorting values in file: core/Tests/Functional/DataHandling/IRRE/CSV/Modify/DataSet/changeParentContentSorting.csv are the same as in the: core/Tests/Functional/DataHandling/IRRE/CSV/DataSet/LiveDefaultElements.csv In the Workspaces related datasets, you will see that there are no move placeholders for IRRE children any more (and versioned records have 0 instead ...
Showing
- typo3/sysext/core/Classes/DataHandling/DataHandler.php 7 additions, 5 deletionstypo3/sysext/core/Classes/DataHandling/DataHandler.php
- typo3/sysext/core/Tests/Functional/DataHandling/IRRE/CSV/Modify/DataSet/changeParentContentSorting.csv 11 additions, 11 deletions...ng/IRRE/CSV/Modify/DataSet/changeParentContentSorting.csv
- typo3/sysext/core/Tests/Functional/DataHandling/IRRE/ForeignField/Modify/DataSet/changeParentContentSorting.csv 15 additions, 15 deletions...oreignField/Modify/DataSet/changeParentContentSorting.csv
- typo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php 6 additions, 2 deletionstypo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Modify/DataSet/changeContentSorting.csv 2 additions, 4 deletions.../DataHandling/FAL/Modify/DataSet/changeContentSorting.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/CSV/Modify/DataSet/changeParentContentSorting.csv 18 additions, 29 deletions...ng/IRRE/CSV/Modify/DataSet/changeParentContentSorting.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/CSV/Publish/DataSet/changeParentContentSorting.csv 12 additions, 12 deletions...g/IRRE/CSV/Publish/DataSet/changeParentContentSorting.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/CSV/PublishAll/DataSet/changeParentContentSorting.csv 12 additions, 12 deletions...RRE/CSV/PublishAll/DataSet/changeParentContentSorting.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/ForeignField/Modify/DataSet/changeParentContentSorting.csv 15 additions, 26 deletions...oreignField/Modify/DataSet/changeParentContentSorting.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/ForeignField/Publish/DataSet/changeParentContentSorting.csv 4 additions, 4 deletions...reignField/Publish/DataSet/changeParentContentSorting.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/ForeignField/PublishAll/DataSet/changeParentContentSorting.csv 4 additions, 4 deletions...gnField/PublishAll/DataSet/changeParentContentSorting.csv
Please register or sign in to comment