Project

General

Profile

Actions

Bug #105146

closed

TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormViewHelper::renderHiddenIdentityField(): Argument #1 ($object) must be of type ?object, array given

Added by rene elsaesser about 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2024-09-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #96473: Allow ServerRequestInterface in ext:fluidClosed2022-01-06

Actions
Is duplicate of TYPO3 Core - Bug #103162: The f:form ViewHelper can not handle arrays as object attribute anymoreClosed2024-02-20

Actions
Actions #1

Updated by Garvin Hicking about 2 months ago

  • Category set to Fluid
Actions #2

Updated by Garvin Hicking about 2 months ago

  • Is Regression set to Yes
Actions #3

Updated by Garvin Hicking about 2 months ago

  • Related to Task #96473: Allow ServerRequestInterface in ext:fluid added
Actions #4

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

Actions #5

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?

Actions #6

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.

Actions #7

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.

Actions #8

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
Actions #9

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

Actions #10

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

Actions #11

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

Actions #12

Updated by Garvin Hicking about 2 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #13

Updated by Benni Mack about 1 month ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF