Bug #98632
closedCObjectViewHelper Request-Object is missing, language translation failes
100%
Description
In "TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper", method "renderStatic", the request object is missing on statement "$contentObjectRenderer->start($data, $table);" and therefore, correct language translation is failed.
Solution: add parameter "request" to given Statement on line 141: $contentObjectRenderer->start($data, $table, $renderingContext->getRequest());
Updated by Stefan Bürk about 2 years ago
Can you please provide more context ? The request object "should" be there in the rendering context. Do you render some kind of StandaloneView or something like that ?
Where do you use the CObjectViewHelper ?
Updated by Urs Maag about 2 years ago
I have extended the tt_content with various fields and want to render it on fluid with <f:cObject typoscriptObjectPath="lib.tx_maagitproduct.contentElement">{product.uid}</f:cObject>.
The typoscript is:
lib.tx_maagitproduct.contentElement = RECORDS
lib.tx_maagitproduct.contentElement {
tables = tt_content
source.current = 1
dontCheckPid = 1
}
Updated by Christian Kuhn over 1 year ago
- Related to Task #100637: Use setRequest() in ContentObjectRenderer added
Updated by Gerrit Code Review over 1 year ago
- Status changed from New to Under Review
Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78684
Updated by Christian Kuhn over 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 4d97fc7d15cb322abbc0a43ec9aa11f03f62f84b.