Bug #65424

SelectViewHelper must respect option(Value|Label)Field for arrays

Added by Stefan Neufeind almost 6 years ago. Updated almost 6 years ago.

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

Related to TYPO3 Core - Bug #65073: SelectViewHelper doesn't handle optionValueField and optionLabelField for array optionsClosedAlexander Schnitzler2015-02-14

Actions

Also available in: Atom PDF