Issue Bug Closed

#105367Cast content of f:link.action to string

Georg Ringer 10/20/24, 08:21 updated 12/02/25, 14:32

Description

using a code like this

    <f:for each="{1:'step1', 2:'step2', 3:'summary'}" as='i' iteration='iterator' key="k">
                <f:link.action action="{i}" arguments="{hash: step.hash}" class="item{k} btn btn-default">{k}</f:link.action>
      </f:for>

leads to an exception

TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder::setContent(): Argument #1 ($tagContent) must be of type ?string, int given, called in /var/www/html/vendor/typo3/cms-fluid/Classes/ViewHelpers/Link/ActionViewHelper.php on line 244

Reviews 4

History 416

  1. Gerrit Code Review pushed patch set 1 for main to change 86664 status Accepted Under Review 10/20/24, 08:27

  2. Gerrit Code Review pushed patch set 2 for main to change 86664 10/21/24, 06:34

  3. Gerrit Code Review pushed patch set 3 for main to change 86664 10/22/24, 10:32

  4. Gerrit Code Review pushed patch set 4 for main to change 86664 10/22/24, 10:57

  5. Gerrit Code Review pushed patch set 5 for main to change 86664 11/19/24, 14:14

  6. Gerrit Code Review pushed patch set 1 for 12.4 to change 87086 11/19/24, 16:48

  7. Gerrit Code Review pushed patch set 1 for 13.4 to change 87087 11/19/24, 16:49

  8. Gerrit Code Review pushed patch set 2 for 12.4 to change 87086 11/19/24, 16:57

  9. Gerrit Code Review pushed patch set 3 for 12.4 to change 87086 11/19/24, 17:01

  10. Gerrit Code Review pushed patch set 4 for 12.4 to change 87086 11/19/24, 17:22

  11. Gerrit Code Review pushed patch set 6 for main to change 86664 11/19/24, 17:50

  12. Gerrit Code Review pushed patch set 2 for 13.4 to change 87087 11/19/24, 17:51

  13. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % 11/19/24, 20:00

    Applied in changeset commit:f1d2bc69c46d295b48a670f4c56d4c88c73e9660.

  14. Benni Mack changed Related to #108083 11/12/25, 21:38

  15. Elias Häußler changed Related to #107868 11/13/25, 20:05

  16. Benni Mack changed status Resolved Closed 12/02/25, 14:32