Issue Bug Closed

#64317Passing object/array to f:for

Bernhard Schenkenfelder 01/16/15, 19:17 updated 01/18/15, 19:53

Description

Given that a proper array is assigned to the variable jobs, then the following happens:

<f:for each="<strong>{jobs}</strong>" as="job">{job.id}</f:for> works as expected, the ForViewHelper iterates over the array.

Now please take a look at: <f:for each="<strong>{ jobs }</strong>" as="job">{job.id}</f:for>

Adding a single space after { and before } throws the following error:

#1237900529: The argument “each” was registered with type “array”, but is of type “string” in view helper “TYPO3\CMS\Fluid\ViewHelpers\ForViewHelper”

Is this the expected behaviour?

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.