Bug #65424

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

Added by Stefan Neufeind over 5 years ago. Updated over 5 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
#1

Updated by Gerrit Code Review over 5 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

Also available in: Atom PDF