#90966Page TS config for languages won't work in list modul
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.