Project

General

Profile

Actions

Bug #64317

closed

Passing object/array to f:for

Added by Bernhard Schenkenfelder about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2015-01-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

Description

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

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

Now please take a look at: <f:for each="*{ jobs }*" 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?

Actions

Also available in: Atom PDF