Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Exclude current record when checking slug's uniqueness
The current record constraint was forgotten in the implementation of uniqueInTable and is now added. Resolves: #91378 Related: #91235 Releases: master, 9.5 Change-Id: Ie7862b22a06996a9d7ca484a01d7a1859c8f7276 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64482 Tested-by: Helmut Hummel <typo3@helhum.io> Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Benni Mack <benni@typo3.org> Reviewed-by: Helmut Hummel <typo3@helhum.io> Reviewed-by: Susanne Moog <look@susi.dev> Reviewed-by: Benni Mack <benni@typo3.org>
- Loading branch information
1 parent
5c48857
commit dab027b
Showing
4 changed files
with
68 additions
and
2 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
6 changes: 6 additions & 0 deletions
6
.../core/Tests/Functional/DataHandling/DataHandler/DataSet/TestSlugUniqueNewRecordResult.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,6 @@ | ||
"pages",,,, | ||
,"uid","pid","title","slug" | ||
,1,0,"root","/" | ||
,2,1,"Page One","/page-one" | ||
,3,1,"Page Two","/page-two" | ||
,4,1,"Page Two","/page-two-1" |
5 changes: 5 additions & 0 deletions
5
...ts/Functional/DataHandling/DataHandler/DataSet/TestSlugUniqueWithDeduplicatedSlugBase.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,5 @@ | ||
"pages",,,, | ||
,"uid","pid","title","slug" | ||
,1,0,"root","/" | ||
,2,1,"Page One","/page-one" | ||
,3,1,"Page One","/page-one-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