Issue Bug Closed

#104612Error on form "Fieldset" without "fluidAdditionalAttributes"

Mathias Brodala 08/13/24, 12:41 updated 10/15/24, 09:08

Description

Having a form using Fieldset elements without any fluidAdditionalAttributes fails with an error since TYPO3 12.4.18:

> PHP Warning: foreach() argument must be of type array|object, string given in /…/vendor/typo3fluid/fluid/src/ViewHelpers/ForViewHelper.php line 135

This is caused by the change in #102291. The {formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')} part evaluates to an empty string which lets f:for fail since this is not traversable.

Reviews 2

History 47

  1. Mathias Brodala changed Related to #102291 08/13/24, 12:42

  2. Gerrit Code Review pushed patch set 1 for main to change 85616 status New Under Review 08/13/24, 12:44

  3. Mathias Brodala changed description 08/13/24, 12:46

  4. Gerrit Code Review pushed patch set 2 for main to change 85616 08/13/24, 13:15

  5. Gerrit Code Review pushed patch set 1 for 12.4 to change 85631 08/14/24, 14:03

  6. Mathias Brodala commented and changed status Under Review Resolved done 0 % 100 % 08/14/24, 15:15

    Applied in changeset commit:0083d46dd6a1aa8aada6c3eec9a51cd1f88da587.

  7. Benni Mack changed status Resolved Closed 10/15/24, 09:08