Bug #90966
closedPage TS config for languages won't work in list modul
100%
Description
Hi,
we figured out, that e.g. the following page ts config don't work in list module, because the new translation select box doesn't disappear:
mod.SHARED { disableLanguages = 1,2,3 }
Deeper testings lead us to the conclusion, that in the RecordListController the method mainAction will be called before the method init, so $this->id is empty and no ts config can be gathered in TYPO3\CMS\Core\Site\Entity\NullSite::getAvailableLanguages later to reduce the amount the found languages.
This will fix that in TYPO3\CMS\Recordlist\Controller\RecordListController::mainAction:
// $this->siteLanguages = $this->site->getAvailableLanguages($this->getBackendUserAuthentication(), false, (int)$this->id); $this->siteLanguages = $this->site->getAvailableLanguages($this->getBackendUserAuthentication(), false, (int)GeneralUtility::_GP('id'));
Thanks for fixing.
Updated by Christian Eßl over 4 years ago
Am I correct, that this only happens, if the page has no site config (otherwise there wouldn't be a NullSite in use) and the languages are set in the old way with TypoScript? (Otherwise there wouldn't be other languages than "0", because there no site config was found for this page)
Updated by Christian Eßl over 4 years ago
- Status changed from New to Needs Feedback
- Assignee deleted (
Christian Eßl)
Updated by Stefan Berger over 4 years ago
Yes, in our case we don't need the site config, because we handle the routing in that application on our own. But for editing the records, we need the sys_languages.
Updated by Daniel Windloff almost 4 years ago
- Related to Story #82206: list module enhancements/bugfixes added
Updated by Gerrit Code Review almost 4 years ago
- Status changed from Needs Feedback 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/c/Packages/TYPO3.CMS/+/65739
Updated by Gerrit Code Review almost 4 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/c/Packages/TYPO3.CMS/+/65739
Updated by Daniel Windloff almost 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 7fd874e63b1cba09c01956ea9ce4cc1b58f35ee4.