Project

General

Profile

Actions

Bug #99429

closed

Backend module configuration insists to have labels explicitly set

Added by Chris Müller almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2022-12-26
Due date:
% Done:

100%

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

Description

Given the following configuration in Configuration/Backend/Modules.php:

return [
    'my_module' => [
        // ...
        'labels' => [
            'title' => 'LLL:EXT:my_ext/Resources/Private/Language/Module/locallang.xlf:module.title',
            'description' => 'LLL:EXT:my_ext/Resources/Private/Language/Module/locallang.xlf:module.description',
            'shortDescription' => 'LLL:EXT:my_ext/Resources/Private/Language/Module/locallang.xlf:module.shortDescription',
        ],

    ]
]

everything works as expected. However, when I omit either the title or the shortDescription, calling the backend throws the following exception:
#1351584844 TYPO3Fluid\Fluid\Core\ViewHelper\Exception
An argument "key" or "id" has to be provided

in /var/www/html/vendor/typo3/cms-fluid/Classes/ViewHelpers/TranslateViewHelper.php line 149

When I omit "description", the backend works as expected.

Tested with v12.2.0-dev.

Actions #1

Updated by Gerrit Code Review almost 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77257

Actions #2

Updated by Gerrit Code Review almost 2 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77257

Actions #3

Updated by Oliver Bartsch almost 2 years ago

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

Updated by Benni Mack almost 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF