Project

General

Profile

Actions

Bug #98632

closed

CObjectViewHelper Request-Object is missing, language translation failes

Added by Urs Maag over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2022-10-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
CObject ViewHelper request missing language translation
Complexity:
easy
Is Regression:
Sprint Focus:

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());


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #100637: Use setRequest() in ContentObjectRendererClosed2023-04-17

Actions
Actions #1

Updated by Stefan Bürk over 1 year 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 ?

Actions #2

Updated by Urs Maag over 1 year 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
}

Actions #3

Updated by Christian Kuhn about 1 year ago

  • Related to Task #100637: Use setRequest() in ContentObjectRenderer added
Actions #4

Updated by Gerrit Code Review about 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

Actions #5

Updated by Christian Kuhn about 1 year ago

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

Also available in: Atom PDF