Skip to content
Snippets Groups Projects
Commit 222b86b4 authored by Sybille Peters's avatar Sybille Peters Committed by Stefan Bürk
Browse files

[BUGFIX] Deduplicate slugs with language -1

Checking for duplicate slugs in DataHandler will
now make sure that no two fields with the same
slug exist, where one of them has a language of
-1.

Existing records are not migrated. This could be
done in a followup patch or with a community
extension.

When new records are created or changed which have a
field of type "slug", a unique handling ensures that
no records exists with the same slug (depending
on the additional settings "unique", "uniqueInSite"
and "uniqueInPid").

The language is considered as well: Records with
the same slug can exist if the language differs.

But language -1 was not considered previously.
Since -1 means all language, no other record with
the same slug should exist in ANY language if a
record with language -1 exists.

Resolves: #99529
Releases: main, 11.5
Change-Id: I919c3a3954df02cd55c701c480f6c1a8c87d84d5
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77407


Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 6b6edb6e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment