[BUGFIX] Fix Non-static method tslib_cObj::enableFields() 69/19869/2
authorWouter Wolters <typo3@wouterwolters.nl>
Mon, 26 Nov 2012 20:17:49 +0000 (21:17 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 13 Apr 2013 08:59:54 +0000 (10:59 +0200)
Non-static method tslib_cObj::enableFields() should
not be called statically

Change-Id: I93497b24618d29534331ac42d87ec2baec91cad6
Resolves: #38602
Releases: 6.1, 6.0
Reviewed-on: https://review.typo3.org/16751
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-on: https://review.typo3.org/19869

typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php

index 4b1ba75..f1e1759 100644 (file)
@@ -481,7 +481,7 @@ class AbstractMenuContentObject {
                                        }
                                        $loadDB = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('FE_loadDBGroup');
                                        $loadDB->start($value, 'pages');
-                                       $loadDB->additionalWhere['pages'] = \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::enableFields('pages');
+                                       $loadDB->additionalWhere['pages'] = $this->parent_cObj->enableFields('pages');
                                        $loadDB->getFromDB();
                                        foreach ($loadDB->itemArray as $val) {
                                                $MP = $this->tmpl->getFromMPmap($val['id']);