Issue Bug Closed

#98629Saving a record with TCA type=slug and sys_language_uid=1 may result in duplicate slug

Sybille Peters 10/17/22, 07:11 updated 01/14/23, 19:32

Description

Usually, if a user tries to set a slug which is already used (for the given language), a warning is displayed and the slug is changed when it is save, e.g. to original-slug-1.

However, if the sys_language_uid of one record is -1 and of another, it is != -1. This does not occur, resulting in duplicates.

Can be tested with EXT:calendarize or with EXT:news: They use a field “slug” of type “slug”.

https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ColumnsConfig/Type/Slug/Index.html

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.