Bug #83572
closedChanged behaviour for uniqueInPid/unique in translated records
100%
Description
Starting with TYPO3 8 LTS the behaviour for TCA's uniqueInPid/unique setting has changed when used in a field exluded from translation.
In our extension we're using a field with a technical key that needs to be equal independent of the language used.
Translated field values get a numeric suffix. E.g.
- myvalue
- myvalue0
- myvalue1
- ...
This suffix is not visible in the backend as the field is excluded from translations but considered in the frontend.
Expected behavior
Translated field values excluded from translation ('l10n_mode' => 'exclude'
) shouldn't be altered.
Steps to reproducs
- TCA
'key' => [ ... 'l10n_mode' => 'exclude', 'config' => [ 'type' => 'input', 'size' => 40, 'eval' => 'uniqueInPid', ], ],
- Create element in default language
- Translate this element to another language
- Check in frontend or database for altered values
Updated by Susanne Moog almost 7 years ago
- Category set to DataHandler aka TCEmain
Updated by Andreas Wolf over 6 years ago
- Has duplicate Bug #84267: Unique evaluation does not work with l10n_mode=exclude added
Updated by Susanne Moog over 6 years ago
- Has duplicate Bug #84666: Page alias is changed for translated pages added
Updated by Gerrit Code Review over 6 years ago
- Status changed from Accepted to Under Review
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56151
Updated by Gerrit Code Review over 6 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56151
Updated by Gerrit Code Review about 6 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56151
Updated by Christoph Lehmann about 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset dd6713fed010185b18dccd12cc9d5ae59e6f2375.
Updated by Lorenz Ulrich over 5 years ago
Is it correct that this was then only applied to master/v9? Is there a reason why it wasn't backported to v8?
Updated by Lorenz Ulrich over 5 years ago
For those interested: The patch at https://github.com/TYPO3/TYPO3.CMS/commit/dd6713fed010185b18dccd12cc9d5ae59e6f2375.patch applies to TYPO3 8.7 if the lower part (patching GetUniqueTranslationTest.php) is removed.
Updated by Gerrit Code Review about 5 years ago
- Status changed from Closed to Under Review
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61792
Updated by Gerrit Code Review about 5 years ago
Patch set 2 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61792
Updated by Gerrit Code Review about 5 years ago
Patch set 3 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61792
Updated by Gerrit Code Review about 5 years ago
Patch set 4 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61792
Updated by Gerrit Code Review about 5 years ago
Patch set 5 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61792
Updated by Christoph Lehmann almost 5 years ago
- Status changed from Under Review to Resolved
Applied in changeset 40f7d52bb257273c4c813f4ace0fce773b3914e3.
Updated by Benni Mack almost 5 years ago
- Status changed from Resolved to Closed
Updated by Christian Kuhn about 4 years ago
- Related to Bug #87038: Unique evaluation does not work with l10n_mode=exclude after editing original record again added