Actions
Bug #100786
closedUsing userFunc for rendering form creates a PHP warning
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
Start date:
2023-05-02
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:
Stabilization Sprint
Description
When using
lib.planAppointmentForm = USER lib.planAppointmentForm { userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run extensionName = Form pluginName = Formframework vendorName = TYPO3\CMS actionName = render settings { persistenceIdentifier = EXT:site_template/Configuration/Forms/myform.form.yaml } stdWrap.wrap = <div id="c-form" class="c-form__plan-appointment">|</div> }
The following warning occurs:
PHP Warning: Trying to access array offset on value of type null in /var/www/html/Web/typo3/sysext/form/Classes/Controller/FormFrontendController.php line 75
When using the userFunc, data can be empty and
$formDefinition['identifier'] .= '-' . $this->configurationManager->getContentObject()->data['uid'];
fails.
Actions