Project

General

Profile

Actions

Bug #90966

closed

Page TS config for languages won't work in list modul

Added by Stefan Berger about 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2020-04-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Story #82206: list module enhancements/bugfixesNew2005-07-21

Actions
Actions

Also available in: Atom PDF