Bug #21702
closed
The type in t3lib_TCEforms does not work if the type field shall be excluded when translating
Added by Fabrizio Branca almost 15 years ago.
Updated over 14 years ago.
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
Committed to SVN Trunk (rev. 6590)
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.
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.
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.
Also available in: Atom
PDF