[BUGFIX] Correctly handle non-existing level in menu.directory VH 67/54167/2
authorMarkus Klein <markus.klein@typo3.org>
Tue, 19 Sep 2017 10:23:56 +0000 (12:23 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 19 Sep 2017 12:20:15 +0000 (14:20 +0200)
commit35c3cb3699ea01da96eb363d0e13a977acebd317
tree1203c72c6d049643d7ba93c78ddfbc37eac21df8
parente7456dd07844af2322de328230b5ab545623f7da
[BUGFIX] Correctly handle non-existing level in menu.directory VH

Providing a non-existing entry-level to the getPageUids() method
now returns an empty array instead of an array with key zero and
a null value.

This way we can correctly stop processing in the viewhelpers
using the MenuViewHelperTrait.

Resolves: #82507
Releases: 7.6
Change-Id: I99a610e612545648d7637e4a441dcdd1b1e51adc
Reviewed-on: https://review.typo3.org/54167
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Johannes Kasberger <johannes.kasberger@reelworx.at>
Tested-by: Johannes Kasberger <johannes.kasberger@reelworx.at>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/fluid_styled_content/Classes/ViewHelpers/Menu/DirectoryViewHelper.php
typo3/sysext/fluid_styled_content/Classes/ViewHelpers/Menu/ListViewHelper.php
typo3/sysext/fluid_styled_content/Classes/ViewHelpers/Menu/MenuViewHelperTrait.php