Project

General

Profile

Actions

Bug #83572

closed

Changed behaviour for uniqueInPid/unique in translated records

Added by Jonas Renggli over 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2018-01-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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.

Actual behavior
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

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #87038: Unique evaluation does not work with l10n_mode=exclude after editing original record againClosedBenni Mack2018-11-29

Actions
Has duplicate TYPO3 Core - Bug #84267: Unique evaluation does not work with l10n_mode=excludeClosedOliver Hader2018-03-14

Actions
Has duplicate TYPO3 Core - Bug #84666: Page alias is changed for translated pagesClosed2018-04-08

Actions
Actions #1

Updated by Susanne Moog about 6 years ago

  • Category set to DataHandler aka TCEmain
Actions #2

Updated by Oliver Hader about 6 years ago

  • Is Regression set to Yes
Actions #3

Updated by Oliver Hader about 6 years ago

  • Status changed from New to Accepted
Actions #4

Updated by Andreas Wolf about 6 years ago

  • Has duplicate Bug #84267: Unique evaluation does not work with l10n_mode=exclude added
Actions #5

Updated by Susanne Moog about 6 years ago

  • Has duplicate Bug #84666: Page alias is changed for translated pages added
Actions #6

Updated by Gerrit Code Review almost 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

Actions #7

Updated by Gerrit Code Review almost 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

Actions #8

Updated by Gerrit Code Review over 5 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

Actions #9

Updated by Christoph Lehmann over 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Benni Mack almost 5 years ago

  • Status changed from Resolved to Closed
Actions #11

Updated by Lorenz Ulrich almost 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?

Actions #12

Updated by Lorenz Ulrich almost 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.

Actions #13

Updated by Gerrit Code Review over 4 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

Actions #14

Updated by Gerrit Code Review over 4 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

Actions #15

Updated by Gerrit Code Review over 4 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

Actions #16

Updated by Gerrit Code Review over 4 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

Actions #17

Updated by Gerrit Code Review over 4 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

Actions #18

Updated by Christoph Lehmann over 4 years ago

  • Status changed from Under Review to Resolved
Actions #19

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions #20

Updated by Christian Kuhn over 3 years ago

  • Related to Bug #87038: Unique evaluation does not work with l10n_mode=exclude after editing original record again added
Actions

Also available in: Atom PDF