[BUGFIX] Use FE category collection for pages 64/32064/2
authorFrancois Suter <francois@typo3.org>
Fri, 8 Aug 2014 13:10:43 +0000 (15:10 +0200)
committerFrancois Suter <francois@typo3.org>
Tue, 9 Sep 2014 15:06:38 +0000 (17:06 +0200)
Class CategoryMenuUtility which is used when rendering a list
of categorized pages calls on
\TYPO3\CMS\Core\Category\Collection\CategoryCollection
to collect the pages. This is wrong in a FE context as all
pages will be collected (hidden, deleted, workspace copies, etc.).
It must use
\TYPO3\CMS\Frontend\Category\Collection\CategoryCollection
instead.

Resolves: #59440
Releases: 6.2, 6.3
Change-Id: Ia8df04f5f615f3b6f09d2f67fbfadf69baca8f21
Reviewed-on: http://review.typo3.org/32064
Reviewed-by: Tomita Militaru <militarutomita@gmail.com>
Reviewed-by: Tomas Norre Mikkelsen <tomasnorre@gmail.com>
Reviewed-by: Fabien Udriot <fabien.udriot@ecodev.ch>
Tested-by: Fabien Udriot <fabien.udriot@ecodev.ch>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Francois Suter <francois@typo3.org>
Tested-by: Francois Suter <francois@typo3.org>
typo3/sysext/frontend/Classes/ContentObject/Menu/CategoryMenuUtility.php

index 6a6b282..2b362cc 100644 (file)
@@ -53,7 +53,7 @@ class CategoryMenuUtility {
                // Get the pages for each selected category
                $selectedCategories = GeneralUtility::intExplode(',', $selectedCategories, TRUE);
                foreach ($selectedCategories as $aCategory) {
-                       $collection = \TYPO3\CMS\Core\Category\Collection\CategoryCollection::load(
+                       $collection = \TYPO3\CMS\Frontend\Category\Collection\CategoryCollection::load(
                                $aCategory,
                                TRUE,
                                'pages',