#105859Menu data processor with type browse causes array error
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
Reviews 3
Files 1
History 47
-
Lina Wolf commented 12/22/24, 10:55
-
Chris Müller changed description 12/23/24, 15:25
-
Gerrit Code Review pushed patch set 1 for main to change 88332 status
NewUnder Review 02/24/25, 20:46 -
Gerrit Code Review pushed patch set 1 for 13.4 to change 88390 02/27/25, 22:24
-
Gerrit Code Review pushed patch set 1 for 12.4 to change 88391 02/27/25, 22:25
-
Georg Ringer commented and changed status
Under ReviewResolved done0 %100 % 02/27/25, 22:30Applied in changeset commit:d0723c02542d4c333090b6d2705060e1a1abc735.
-
Benni Mack changed status
ResolvedClosed 12/02/25, 14:27
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