Issue Bug Closed

#110496EXT:fluid CObjectViewHelper does not use the TypoScript setup from request

Rafael Kähm 08/18/26, 09:35 updated 09/08/26, 10:02

Description

Issue

\TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper loses context, because it pick-ups the TypoScript from configuration manager.

$setup = self::getConfigurationManager()->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT);

See: https://github.com/TYPO3/typo3/blob/fa72a87fa8d24e0853904aa6188837adb7f85903/typo3/sysext/fluid/Classes/ViewHelpers/CObjectViewHelper.php#L100

—-

Expected behavior:

CObjectViewHelper must reuse the TypoScript from rendering-context Request object.

Proposed patch:

        $setup = $request->getAttribute('frontend.typoscript')?->getSetupArray()
            ?? self::getConfigurationManager()->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT);

—-

PS: Potentially the https://github.com/TYPO3/typo3/blob/5007ce475611421d607610ac82de37369e3c31b2/typo3/sysext/form/Classes/Domain/Finishers/ConfirmationFinisher.php#L85 does the same, not tested it currently.

$setup = $this->extbaseConfigurationManager->getConfiguration(ExtbaseConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT);

Similar patch could help:

            $setup = $this->finisherContext->getRequest()->getAttribute('frontend.typoscript')?->getSetupArray()
                ?? $this->extbaseConfigurationManager->getConfiguration(ExtbaseConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT);

Reviews 6

History 212

  1. Rafael Kähm commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-08-24T20:45:11+00:00" > 08/24/26, 20:45 </span>

    Applied in changeset commit:2622f9e983fdf58317eeac2ecb93715008a4dd57.