Open marcovonarx opened 5 years ago
Hi :)
I have noticed the same issue with version 8.1.0, but the buildConditionAction is currently returning a string
So I think something like this:
/** @var Form $form */
$form = $formRepository->findByIdentifier($this->powermailArguments['mail']['form']);
if ($form === null) {
return json_encode([]):
}
should also be fine, but I don't know if we should send some error data or something else to the frontend so that we can handle/ ignore the error.
What do you think? :)
we use version 3.5.2, but it looks this may happen on 6.1 as well. in some rare cases powermail_cond is not able to fetch a form object and generates an exception
Uncaught TYPO3 Exception: Argument 1 passed to In2code\PowermailCond\Controller\ConditionController::setTextFields() must be an instance of In2code\Powermail\Domain\Model\Form, null given, called in /typo3conf/ext/powermail_cond/Classes/Controller/ConditionController.php on line 60 | TypeError thrown in file /typo3conf/ext/powermail_cond/Classes/Controller/ConditionController.php in line 77. Requested URL: ...../online-antrag/?type=3132
one work around could be (in version 3.5.2) In2code\PowermailCond\Controller\ConditionController starting at line 59
to