Bug #65424
SelectViewHelper must respect option(Value|Label)Field for arrays
Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
ViewHelpers
Target version:
-
Start date:
2015-02-28
Due date:
% Done:
0%
Estimated time:
Has patch:
No
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
Updated by Gerrit Code Review almost 6 years 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