Project

General

Profile

Actions

Bug #93646

open

ContentObjectRenderer gets resetted when using FluidEmail

Added by Paul Kamma about 3 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2021-03-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
FluidEmail
Complexity:
Is Regression:
Sprint Focus:

Description

I noticed this problem in a special situation in my extbase plugin.
I have a classic structure with show,submit,success actions.
show displays a normal form
submit do some checks and when the check is false I forward back to show .

In my show ation I use $this->configurationManager->getContentObject(); to read out some informations out of the content element.
After the I made some checks in the submit action I forward back to show , in this situation the data of $this->configurationManager->getContentObject(); is empty.

The reason for this is I noticed happens because I make a mail submit in the submit action and use FluidEmail
$mail = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Mail\FluidEmail::class);

When this line is added the getContentObject() returns an empty ContentObjectRenderer .

My workaround for this problem was

$contentObject = $this->configurationManager->getContentObject();
// do something with email like  GeneralUtility::makeInstance(\TYPO3\CMS\Core\Mail\FluidEmail::class);
$this->configurationManager->setContentObject($contentObject);

Daniel Siepmann noticed that inside the constructor of the StandaloneView the contentObjects gets 'resetted'
https://github.com/TYPO3/TYPO3.CMS/blob/2f6fb781a2f9387c875cb176c2842426f70d52c8/typo3/sysext/fluid/Classes/View/StandaloneView.php#L45


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #92867: Standaloneview not working in Eid request handlerRejected2020-11-18

Actions
Actions #1

Updated by Georg Ringer over 2 years ago

  • Related to Bug #92867: Standaloneview not working in Eid request handler added
Actions

Also available in: Atom PDF