Bug #105146
closedTYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormViewHelper::renderHiddenIdentityField(): Argument #1 ($object) must be of type ?object, array given
100%
Description
Hello,
Typo3 12.4.20 Fluid
In FormViewHelper the argument 'object' can be type 'mixed' but if you use an array you get
(1/1) TypeError
TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormViewHelper::renderHiddenIdentityField(): Argument #1 ($object) must be of type ?object, array given, called in ***/vendor/typo3/cms-fluid/Classes/ViewHelpers/FormViewHelper.php on line 180
AbstractFormViewHelper the function requires object renderHiddenIdentityField(?object $object, ?string $name)
Ty
Updated by Garvin Hicking about 2 months ago
- Related to Task #96473: Allow ServerRequestInterface in ext:fluid added
Updated by Gerrit Code Review about 2 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86367
Updated by Garvin Hicking about 2 months ago
Thanks for your report! I've prepared a patch, would you be able to check that out, if it works to you or there are further follow-up problems with it?
Updated by rene elsaesser about 2 months ago
Garvin Hicking wrote in #note-5:
Thanks for your report! I've prepared a patch, would you be able to check that out, if it works to you or there are further follow-up problems with it?
Hi,
many thanks for the fix.
it works again as expected with no further problems now.
Updated by Garvin Hicking about 2 months ago
Hi Rene,
great, thanks for getting back to me quickly, that helps. We'll try to push the patch forward for the next release.
Updated by Garvin Hicking about 2 months ago
- Is duplicate of Bug #103162: The f:form ViewHelper can not handle arrays as object attribute anymore added
Updated by Gerrit Code Review about 2 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86367
Updated by Gerrit Code Review about 2 months ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86367
Updated by Gerrit Code Review about 2 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86476
Updated by Garvin Hicking about 2 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 75e7752bbddb122e9b1d8f14189f0a7629be2fa1.