[BUGFIX] Fix bug in HMENU special prev 63/34063/2
authorFrederic Gaus <gaus@flagbit.de>
Thu, 13 Nov 2014 12:42:54 +0000 (13:42 +0100)
committerBenjamin Mack <benni@typo3.org>
Fri, 14 Nov 2014 10:34:18 +0000 (11:34 +0100)
This patch fixes a regression of patch #61721.
The array before this patch had numeric indexes and thus the first
one was not recognized in the prev menu.

Releases: master, 6.2
Resolves: #62482
Related: #61721
Change-Id: I2b05ffa3973fe7ca31b6e4ccd193d44718d1ec1a
Reviewed-on: http://review.typo3.org/34063
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php

index f8ab2bc..064cd7a 100644 (file)
@@ -925,7 +925,7 @@ class AbstractMenuContentObject {
                $filteredPages = array();
                foreach ($pages as $aPage) {
                        if ($this->filterMenuPages($aPage, $banned, $aPage['doktype'] === PageRepository::DOKTYPE_SPACER)) {
-                               $filteredPages[] = $aPage;
+                               $filteredPages[$aPage['uid']] = $aPage;
                        }
                }
                return $filteredPages;