Bug #65424
SelectViewHelper must respect option(Value|Label)Field for arrays
Status: | Under Review | Start date: | 2015-02-28 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | ViewHelpers | |||
Target version: | - | |||
Has patch: | No | Affected Flow version: | FLOW3 1.1.0 |
Description
<f:form.select options="{array}" optionValueField="uid" optionLabelField="title" />
should work with the given array:
array(
array(
'uid' => 1,
'title' => 'Foo'
),
array(
'uid' => -1,
'title' => 'Bar'
),
array(
'title' => 'Baz'
),
array(
'uid' => '2'
),
)
Currently fluid tries to use the keys as values and the arrays as label which results in an error.
(Port to upstream from TYPO3 CMS, #65073)
Related issues
History
#1 Updated by Gerrit Code Review 5 months ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.Fluid has been pushed to the review server.
It is available at http://review.typo3.org/37381