Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Skip processing of inline children which aren't workspace-aware
When dealing with inline foreign field setups in workspaces and having a child table not workspace aware, the DataHandler still tries to create workspace copies of the not workspace aware child. In v9, it sets pid=-1 for those records, which succeeds if the pid db field is signed. In this case a dead record of the child is created. If the field is unsigned, the insertion fails and an error message is created. In v10 and master pid=-1 is gone and the real pid is set, the record is created and becomes a 1:1 duplicate in live workspace. The patch adds an according check to the DataHandler in workspace context to skip not workspace aware children. Resolves: #91680 Releases: master, 10.4, 9.5 Change-Id: Ifb8183f25e69a75ecc5b5ebac3c9a57c03265e7f Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65230 Tested-by: TYPO3com <noreply@typo3.com> Tested-by: David Steeb <david.steeb@b13.com> Tested-by: Benni Mack <benni@typo3.org> Reviewed-by: David Steeb <david.steeb@b13.com> Reviewed-by: Benni Mack <benni@typo3.org>
- Loading branch information
Showing
7 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...nal/DataHandling/IRRE/CSV/Modify/DataSet/changeHotelSortingWithOfferNotWorkspaceAware.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"tt_content",,,,,,,,,,,,, | ||
,"uid","pid","sorting","deleted","sys_language_uid","l18n_parent","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","t3ver_move_id","header","tx_irretutorial_1ncsv_hotels" | ||
,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1","3,4" | ||
,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2",5 | ||
"tx_irretutorial_1ncsv_hotel",,,,,,,,,,,,, | ||
,"uid","pid","sorting","deleted","sys_language_uid","l18n_parent","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","t3ver_move_id","title","offers" | ||
,3,89,256,0,0,0,0,0,0,0,0,"Hotel #1","5,6" | ||
,4,89,128,0,0,0,0,0,0,0,0,"Hotel #2",7 | ||
,5,89,64,0,0,0,0,0,0,0,0,"Hotel #1",8 | ||
,6,89,256,0,0,0,1,4,0,3,0,"Hotel #1","5,6" | ||
,7,89,192,0,0,0,1,3,0,0,3,"[MOVE-TO PLACEHOLDER for #3, WS#1]","5,6" | ||
"tx_irretutorial_1ncsv_offer",,,,,,,,,,,,, | ||
,"uid","pid","sorting","deleted","sys_language_uid","l18n_parent","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","t3ver_move_id","title","prices" | ||
,5,89,256,0,0,0,0,0,0,0,0,"Offer #1.1","7,8,9" | ||
,6,89,128,0,0,0,0,0,0,0,0,"Offer #1.2","10,11" | ||
,7,89,64,0,0,0,0,0,0,0,0,"Offer #2.1",12 | ||
,8,89,32,0,0,0,0,0,0,0,0,"Offer #1.1",13 | ||
"tx_irretutorial_1ncsv_price",,,,,,,,,,,,, | ||
,"uid","pid","sorting","deleted","sys_language_uid","l18n_parent","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","t3ver_move_id","title", | ||
,7,89,256,0,0,0,0,0,0,0,0,"Price #1.1.1", | ||
,8,89,128,0,0,0,0,0,0,0,0,"Price #1.1.2", | ||
,9,89,64,0,0,0,0,0,0,0,0,"Price #1.1.3", | ||
,10,89,32,0,0,0,0,0,0,0,0,"Price #1.2.1", | ||
,11,89,16,0,0,0,0,0,0,0,0,"Price #1.2.2", | ||
,12,89,8,0,0,0,0,0,0,0,0,"Price #2.1.1", | ||
,13,89,4,0,0,0,0,0,0,0,0,"Price #1.1.1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...andling/IRRE/ForeignField/Modify/DataSet/changeHotelSortingWithOfferNotWorkspaceAware.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"tt_content",,,,,,,,,,,,,,,, | ||
,"uid","pid","sorting","deleted","sys_language_uid","l18n_parent","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","t3ver_move_id","header","tx_irretutorial_1nff_hotels",,, | ||
,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1",2,,, | ||
,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2",1,,, | ||
"tx_irretutorial_1nff_hotel",,,,,,,,,,,,,,,, | ||
,"uid","pid","sorting","deleted","sys_language_uid","l18n_parent","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","t3ver_move_id","title","parentid","parenttable","parentidentifier","offers" | ||
,2,89,1,0,0,0,0,0,0,0,0,"Hotel #0",89,"pages",,0 | ||
,3,89,1,0,0,0,0,0,0,0,0,"Hotel #1",297,"tt_content",,2 | ||
,4,89,2,0,0,0,0,0,0,0,0,"Hotel #2",297,"tt_content",,1 | ||
,5,89,1,0,0,0,0,0,0,0,0,"Hotel #1",298,"tt_content",,1 | ||
,6,89,1,0,0,0,1,4,0,3,0,"Hotel #1",297,"tt_content",,2 | ||
,7,89,258,0,0,0,1,3,0,0,3,"[MOVE-TO PLACEHOLDER for #3, WS#1]",297,"tt_content",,0 | ||
"tx_irretutorial_1nff_offer",,,,,,,,,,,,,,,, | ||
,"uid","pid","sorting","deleted","sys_language_uid","l18n_parent","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","t3ver_move_id","title","parentid","parenttable","parentidentifier","prices" | ||
,5,89,1,0,0,0,0,0,0,0,0,"Offer #1.1",3,"tx_irretutorial_1nff_hotel",,3 | ||
,6,89,2,0,0,0,0,0,0,0,0,"Offer #1.2",3,"tx_irretutorial_1nff_hotel",,2 | ||
,7,89,1,0,0,0,0,0,0,0,0,"Offer #2.1",4,"tx_irretutorial_1nff_hotel",,1 | ||
,8,89,1,0,0,0,0,0,0,0,0,"Offer #1.1",5,"tx_irretutorial_1nff_hotel",,1 | ||
"tx_irretutorial_1nff_price",,,,,,,,,,,,,,,, | ||
,"uid","pid","sorting","deleted","sys_language_uid","l18n_parent","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","t3ver_move_id","title","parentid","parenttable","parentidentifier", | ||
,7,89,1,0,0,0,0,0,0,0,0,"Price #1.1.1",5,"tx_irretutorial_1nff_offer",, | ||
,8,89,2,0,0,0,0,0,0,0,0,"Price #1.1.2",5,"tx_irretutorial_1nff_offer",, | ||
,9,89,3,0,0,0,0,0,0,0,0,"Price #1.1.3",5,"tx_irretutorial_1nff_offer",, | ||
,10,89,1,0,0,0,0,0,0,0,0,"Price #1.2.1",6,"tx_irretutorial_1nff_offer",, | ||
,11,89,2,0,0,0,0,0,0,0,0,"Price #1.2.2",6,"tx_irretutorial_1nff_offer",, | ||
,12,89,1,0,0,0,0,0,0,0,0,"Price #2.1.1",7,"tx_irretutorial_1nff_offer",, | ||
,13,89,1,0,0,0,0,0,0,0,0,"Price #1.1.1",8,"tx_irretutorial_1nff_offer",, |