-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Make slugs unique when copying pages
When a page is copied the slug for the copied page needs to be unique for a site. To accomplish that, the site for the record is fetched. Since this new record does not have a uid yet, the parent page uid must be used to determine the site. Resolves: #87697 Releases: master, 9.5 Change-Id: Iac5fa7adc673c41662b652e932c23b90633e0d5d Reviewed-on: https://review.typo3.org/c/59686 Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Jürgen Venne <venne@schaffrath-digital.de> Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by: Jürgen Venne <venne@schaffrath-digital.de> Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
- Loading branch information
Showing
3 changed files
with
19 additions
and
13 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
12 changes: 6 additions & 6 deletions
12
typo3/sysext/core/Tests/Functional/DataHandling/Regular/DataSet/LiveDefaultPages.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
"pages",,,,,,,,,,,,, | ||
,"uid","pid","sorting","deleted","sys_language_uid","l10n_parent","t3_origuid","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","t3ver_move_id","title" | ||
,1,0,256,0,0,0,0,0,0,0,0,0,"FunctionalTest" | ||
,88,1,256,0,0,0,0,0,0,0,0,0,"DataHandlerTest" | ||
,89,88,256,0,0,0,0,0,0,0,0,0,"Relations" | ||
,90,88,512,0,0,0,0,0,0,0,0,0,"Target" | ||
"pages",,,,,,,,,,,,,, | ||
,"uid","pid","sorting","deleted","sys_language_uid","l10n_parent","t3_origuid","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","t3ver_move_id","title","slug" | ||
,1,0,256,0,0,0,0,0,0,0,0,0,"FunctionalTest","/" | ||
,88,1,256,0,0,0,0,0,0,0,0,0,"DataHandlerTest","/data-handler" | ||
,89,88,256,0,0,0,0,0,0,0,0,0,"Relations","/data-handler/relations" | ||
,90,88,512,0,0,0,0,0,0,0,0,0,"Target","/data-handler/target" |
12 changes: 6 additions & 6 deletions
12
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/copyPage.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