Project

General

Profile

Actions

Bug #87186

closed

Missing namespace for TypoScriptFrontendController in CObjectViewHelper

Added by David Bruchmann over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Fluid
Target version:
Start date:
2018-12-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

In the CObjectViewHelper is this function:

    /**
     * @return ContentObjectRenderer
     */
    protected static function getContentObjectRenderer()
    {
        return GeneralUtility::makeInstance(
            ContentObjectRenderer::class,
            $GLOBALS['TSFE'] ?? GeneralUtility::makeInstance(TypoScriptFrontendController::class, null, 0, 0)
        );
    }

Here TypoScriptFrontendController has no namespace and that throws an error.

Adding "use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController;" above the class solves the issue;

Version: 9.5.3;


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #86979: stdWrap fieldRequired/insertData sometimes not working as expected since TYPO3 9 LTSClosed2018-11-22

Actions
Actions #1

Updated by Gerrit Code Review over 5 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59185

Actions #2

Updated by Markus Klein over 5 years ago

  • Related to Bug #86979: stdWrap fieldRequired/insertData sometimes not working as expected since TYPO3 9 LTS added
Actions #3

Updated by Gerrit Code Review over 5 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59185

Actions #4

Updated by Georg Ringer over 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Gerrit Code Review over 5 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59187

Actions #6

Updated by Georg Ringer about 5 years ago

  • Status changed from Under Review to Resolved
Actions #7

Updated by Benni Mack almost 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF