Actions
Bug #72797
closedEditDocumentController / languageSwitch / localized records without a default language record relation
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Localization
Target version:
Start date:
2016-01-18
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
Description
The 'Language' menu on top of the edit document view makes no sense and results in strange behaviour if you edit a record that has no default language (0) record relation.
The languageSwitch
method of class EditDocumentController
relies on an existing default language (0) record.
Generated links look like:
<option value="tce_db.php?&cmd[tt_content][][localize]=8&redirect=alt_doc.php…">Italian [NEW]</option>
('localize' with an empty id key)
and in the end redirects to an edit view of a randomly selected record(?)
I would suggest to remove the menu if the open record has no default language record relation.
Files
Actions