Bug #72797
closedEditDocumentController / languageSwitch / localized records without a default language record relation
100%
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
Updated by Riccardo De Contardi over 8 years ago
- File Schermata 2016-05-14 alle 16.13.15.png Schermata 2016-05-14 alle 16.13.15.png added
- Category set to Backend User Interface
- Target version changed from 6.2.18 to Candidate for patchlevel
This still occurs on 8.2-dev
steps to reproduce
1) have 2 languages, e.g. default (Italian) and english (ID=1)
2) have a page with 2 languages, go on it, select "languages" view
3) create a new content element in the alternative language (english)
in doing that you'll notice that the first dropdown reads the default language (wrong) but the language of the element is correct (see attached screenshot)
after saving, the first will become correct.
4) save and close it
5) edit again the element and, using the dropdown, "translate" it into "Italian Default [NEW]"
6) RESULT: you will be redirected to a random record.
Updated by Gerrit Code Review about 8 years ago
- Status changed from New to Under Review
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50186
Updated by Gerrit Code Review about 8 years ago
Patch set 2 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50186
Updated by Gerrit Code Review about 8 years ago
Patch set 3 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50186
Updated by Gerrit Code Review about 8 years ago
Patch set 4 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50186
Updated by Gerrit Code Review about 8 years ago
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50298
Updated by Gerrit Code Review about 8 years ago
Patch set 5 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50186
Updated by Tymoteusz Motylewski about 8 years ago
- Category changed from Backend User Interface to Localization
- TYPO3 Version changed from 6.1 to 7
Updated by Christina Hauk about 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e009388992e900f6e14e05fd8383aa44eccd2682.
Updated by Gerrit Code Review almost 8 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51092
Updated by Gerrit Code Review almost 8 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51092
Updated by Gerrit Code Review almost 8 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51092
Updated by Gerrit Code Review almost 8 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51092
Updated by Patrick Gaiser almost 8 years ago
We've got the same problem (BUG #78955) and tested your latest patch which works successfully.
Thanks for this solution.
Updated by Gerrit Code Review over 7 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51805
Updated by Sascha Nowak over 7 years ago
- Status changed from Under Review to Resolved
Applied in changeset 00fa1cd5c876406952d655592b804f4333c42191.