Issue Bug Closed

#105859Menu data processor with type browse causes array error

Lina Wolf 12/22/24, 10:52 updated 12/02/25, 14:27

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