Actions
Bug #105859
openMenu data processor with type browse causes array error
Status:
New
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2024-12-22
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
13
PHP Version:
8.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Using such a browser menu:
page { 10 { dataProcessing { 50 = menu 50 { special = browse as = browseNavigation } } } }
causes
(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception PHP Warning: Undefined array key "special." in /var/www/html/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php line 1062
I would suggest to insert an early return or, prefered, deliver all items in this case and let the template descide which ones to use
Files
Updated by Lina Wolf 27 days ago
Actually https://docs.typo3.org/permalink/t3tsref:confval-hmenu-browse-special-items claims that the default for "items" is the current page.
It seems like the docs are wrong here or the default has disappeared
Actions