Project

General

Profile

Actions

Bug #105859

open

Menu data processor with type browse causes array error

Added by Lina Wolf 27 days ago. Updated 26 days ago.

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

early_return.patch (1005 Bytes) early_return.patch Lina Wolf, 2024-12-22 10:51
Actions #1

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 #2

Updated by Chris Müller 26 days ago

  • Description updated (diff)
Actions

Also available in: Atom PDF