[BUGFIX] Fix bug in HMENU special prev 61/34061/4
authorFrederic Gaus <gaus@flagbit.de>
Thu, 13 Nov 2014 12:42:54 +0000 (13:42 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Fri, 14 Nov 2014 10:35:27 +0000 (11:35 +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/34061
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php

index 7f5ec9e..cac61b4 100644 (file)
@@ -918,7 +918,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;