Actions
Bug #80298
closedWrong language selector in "New element"-context
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2017-03-16
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
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
Actions