Bug #65424

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

Added by Stefan Neufeind 5 months ago. Updated 5 months ago.

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

related to Core - Bug #65073: SelectViewHelper doesn't handle optionValueField and opti... Needs Feedback 2015-02-14

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

Also available in: Atom PDF