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

Also available in: Atom PDF