The type in t3lib_TCEforms does not work if the type field shall be excluded when translating
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)
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)
#2 Updated by Fabrizio Branca about 10 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.
#3 Updated by J. Peter M. Schuler about 10 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.