Actions
Bug #94203
closedException when setting extbase variables in FLUIDTEMPLATE content object
Start date:
2021-05-26
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
Description
Using extbase variables in a FLUIDTEMPLATE content object leads to following exception:
ArgumentCountError Too few arguments to function TYPO3\CMS\Extbase\Mvc\Web\RequestBuilder::build(), 0 passed in /var/www/html/typo3/sysext/frontend/Classes/ContentObject/FluidTemplateContentObject.php on line 284 and exactly 1 expected
Example setup to test:
Typoscript
page = PAGE
page {
typeNum = 0
10 = COA_INT
10 {
10 = FLUIDTEMPLATE
10 {
file = fileadmin/templates/form.html
settings {
persistenceIdentifier = fileadmin/form_definitions/contact.form.yaml
}
extbase.pluginName = Formframework
extbase.controllerExtensionName = Form
extbase.controllerName = FormFrontend
extbase.controllerActionName = perform
}
}
}
fileadmin/templates/form.html
<formvh:render persistenceIdentifier="{settings.persistenceIdentifier}" />
fileadmin/form_definitions/contact.form.yaml
renderingOptions:
submitButtonLabel: Submit
type: Form
identifier: something
label: something
prototypeName: standard
renderables:
-
renderingOptions:
previousButtonLabel: 'Previous step'
nextButtonLabel: 'Next step'
type: Page
identifier: page-1
label: Step
renderables:
-
defaultValue: ''
type: Telephone
identifier: telephone-1
label: 'Telephone number'
Updated by Oliver Bartsch over 3 years ago
- Related to Task #93853: Use native PSR-7 Request in Extbase Request building added
Updated by Gerrit Code Review over 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/69293
Updated by Oliver Bartsch over 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 3a44b00214066207629ec7b8dc1594a122a9dd79.
Actions