Bug #73182

Epic #72584: sysext:impexp

Import of localized content fails, content looses language id

Added by Markus Klein over 3 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
Start date:
2016-02-08
Due date:
% Done:

100%

TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
medium
Is Regression:
Yes
Sprint Focus:

Description

Since #70825, importing localized content (static relation to language) fails due to missing handling in DataHandler for the newly introduced special TCA config "language".

The condition "$tcaFieldConf['type'] == 'select' && $tcaFieldConf['foreign_table']" in \TYPO3\CMS\Core\DataHandling\DataHandler::checkValueForGroupSelect has been true before the change and caused the given language reference to be resolved correctly.
Now this resolution step is omitted, ultimately leading to a language uid = 0 for all imported CEs records.


Related issues

Related to TYPO3 Core - Task #70825: Make default-language during a record-edit show name/flag Closed 2015-10-19
Related to TYPO3 Core - Bug #75998: be user and group "limit to language" property not saved when choosing default only Closed 2016-05-01

Associated revisions

Revision fe306dd6 (diff)
Added by Markus Klein over 3 years ago

[BUGFIX] Make DataHandler aware of relations behind special=languages

The special TCA option "languages" makes some other TCA options like
foreign_table unnecessary which have been removed from
the sys_language_uid fields.

But DataHandler relies on the 'foreign_table' setting and therefore
needs some more information to resolve the related table
behind the "languages" option.

Resolves: #73182
Releases: master, 7.6
Change-Id: Id8f7f995d424f69fd5dce8e28cb1fc9db33fa0b0
Reviewed-on: https://review.typo3.org/46535
Reviewed-by: Wouter Wolters <>
Reviewed-by: Daniel Goerz <>
Reviewed-by: Georg Ringer <>
Tested-by: Georg Ringer <>
Reviewed-by: Andreas Wolf <>
Tested-by: Andreas Wolf <>
Reviewed-by: Frank Naegler <>

Revision 51d429d0 (diff)
Added by Markus Klein over 3 years ago

[BUGFIX] Make DataHandler aware of relations behind special=languages

The special TCA option "languages" makes some other TCA options like
foreign_table unnecessary which have been removed from
the sys_language_uid fields.

But DataHandler relies on the 'foreign_table' setting and therefore
needs some more information to resolve the related table
behind the "languages" option.

Resolves: #73182
Releases: master, 7.6
Change-Id: Id8f7f995d424f69fd5dce8e28cb1fc9db33fa0b0
Reviewed-on: https://review.typo3.org/48468
Reviewed-by: Markus Klein <>
Tested-by: Markus Klein <>

History

#1 Updated by Markus Klein over 3 years ago

  • Status changed from Accepted to In Progress

#2 Updated by Gerrit Code Review over 3 years ago

  • Status changed from In Progress 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/46535

#3 Updated by Gerrit Code Review over 3 years 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/46535

#4 Updated by Markus Klein over 3 years ago

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

#5 Updated by Gerrit Code Review over 3 years ago

  • Status changed from Resolved to Under Review

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

#6 Updated by Markus Klein over 3 years ago

  • Status changed from Under Review to Resolved

#7 Updated by Riccardo De Contardi almost 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF