Bug #21702
closedThe type in t3lib_TCEforms does not work if the type field shall be excluded when translating
0%
Description
Problem:
When defining a field as 'type' field in TCA and defining this field as l10n_mode "exclude" the type field will not be respected when editing the language overlay records. This is the case if you want to prevent language versions to switch the type (which in my opinion is the most common case)
Solution:
Check if the type field is an exclude field and if so, then read the typeNum value from the default language's data
(issue imported from #M12781)
Files
Updated by Fabrizio Branca almost 15 years ago
I fear with committing my last patch we introduced a new bug:
While everything works fine for the translation record (the problem was, that the type field was not taken into account there) now the original record in the default language ignores the value of its type field (if l10nmode=='exclude', as defined in the orginal post...) and always shows the fields of the default type.
Updated by J. Peter M. Schuler almost 15 years ago
Agreed, current stable has the problem, that type field isn't working if typefield l10n_mode is set to exclude.
Tested on own extension because typefield was ignored after TYPO3 Core Update to 4.3. Commenting out the l10n_mode line in the extension TCA hotfixes the problem. Other extensions like tt_news without l10n_mode set work fine also, so it seems Fabrizio is right.
Supplied patch works as well.
Updated by Ingo Renner over 14 years ago
If the problem still exists, could you please open a new issue. I'm going to close this one now as it's marked fixed.