Project

General

Profile

Actions

Bug #86571

closed

Language Menu not setting language uid correctly when special.value=auto

Added by Nikita Hovratov over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2018-10-04
Due date:
% Done:

100%

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

Description

Instead of setting languageUid = 0 or 1 etc. the first entry gets the value "auto" and the others are just empty.


Files

langauge-menu-auto.jpg (40.7 KB) langauge-menu-auto.jpg Nikita Hovratov, 2018-10-04 15:26
Actions #1

Updated by Nikita Hovratov over 5 years ago

  • Subject changed from Language Menu not setting language uid correctly when special.language=auto to Language Menu not setting language uid correctly when special.value=auto
Actions #2

Updated by Nikita Hovratov over 5 years ago

Typoscript Setup:

        30 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
        30 {
            special = language
            special.value = auto
            as = langmenu
            dataProcessing {
                10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
                10 {
                    references.fieldName = media
                }
            }
        }
Actions #3

Updated by Nikita Hovratov over 5 years ago

The "auto" config is not taken care of in TYPO3\CMS\Frontend\DataProcessing\Menuprocessor->prepareLevelLanguageConfiguration().
There should be a condition checking the conf and passing the enabled language uids instead.

Actions #4

Updated by Gerrit Code Review over 5 years ago

  • Status changed from New 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/58576

Actions #5

Updated by Gerrit Code Review over 5 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/58576

Actions #6

Updated by Nikita Hovratov over 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Benni Mack almost 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF