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.
Updated by Georg Ringer over 1 year ago
- Status changed from New to Accepted
- Target version changed from 12 LTS to Candidate for patchlevel
Updated by Georg Ringer 4 months ago
- Status changed from Accepted to Closed
this has been fixed by #101201 in v12, see https://review.typo3.org/c/Packages/TYPO3.CMS/+/79572/2/typo3/sysext/form/Classes/Controller/FormFrontendController.php
Updated by Georg Ringer 4 months ago
- Related to Bug #101201: Clean up ContenObjectRenderer usage added
Actions