Bug #87038

Unique evaluation does not work with l10n_mode=exclude after editing original record again

Added by Alexander Bohndorf 10 months ago. Updated 9 months ago.

Status:
Under Review
Priority:
Must have
Assignee:
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2018-11-29
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:
On Location Sprint

Description

Translation handling with l10n_mode=exclude:
the field is copied from default language to language children. In combination with eval=unique the language children get a unique value too like “fieldvalue”.
If you edit and save the original record afterwards then "fieldvalue" turns into "fieldvalue0" because the uniqueness is also checked in translated records.
My expected behaviour is: uniqueness should be ignored for fields with l10n_mode=exclude in translated records.

Related to #84267
Related to #83572

test_extension.zip (4.67 KB) Jan Helke, 2018-12-07 11:33

History

#1 Updated by Alexander Bohndorf 10 months ago

  • Description updated (diff)

#2 Updated by Gerrit Code Review 10 months ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58979

#3 Updated by Gerrit Code Review 10 months ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58979

#4 Updated by Gerrit Code Review 10 months ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58979

#5 Updated by Gerrit Code Review 10 months ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58979

#6 Updated by Jan Helke 10 months ago

  • File test_extension.zip added
  • Complexity set to easy
  • Sprint Focus set to On Location Sprint

I hacked a little extension to test the behaviour as an editor.

Install
Create new language (if needed)
Create new Test element from extension
Create new translation of the page (if needed)
Translate element
Open default language element
Hit save button.

Wrong behaviour: The value in the field will switch from "fieldvalue" to "fieldvalue0"
Correct behaviour: The value stays the same.

#7 Updated by Gerrit Code Review 9 months ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58979

#8 Updated by Alexander Bohndorf 9 months ago

  • Assignee changed from Alexander Bohndorf to Benni Mack

#9 Updated by Gerrit Code Review 9 months ago

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/58979

#10 Updated by Gerrit Code Review 9 months 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/58979

#11 Updated by Gerrit Code Review 9 months 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/58979

Also available in: Atom PDF