Project

General

Profile

Actions

Bug #100786

open

Using userFunc for rendering form creates a PHP warning

Added by Joey Bouten 12 months ago. Updated 11 months ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Form Framework
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 #1

Updated by Georg Ringer 12 months ago

  • Status changed from New to Accepted
  • Target version changed from 12 LTS to Candidate for patchlevel
Actions #2

Updated by Benni Mack 11 months ago

  • Sprint Focus set to Stabilization Sprint
Actions

Also available in: Atom PDF