#80298Wrong language selector in "New element"-context
Description
Hey folks,
I got a wrong language selector in the “new element”-context, if there is a special constellation:
- Create an new folder
- Create a translatable record (e.g. news)
- Change the language of the record to a non-default language (l10n_parent should be empty)
- Create a new record of the same type: Now you get a language selector with the language you select in the first record.
Problem is part of TYPO3\CMS\Backend\Controller\EditDocumentController->languageSwitch.
The $rowCurrent is selected but never checked. There is a missing “$rowCurrent === null” check to avoid the language menu, if the record is a new one?!?
Problem occurs only in TYPO3 7.x
Regards,
Tim
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.