Issue Bug Closed

#65073SelectViewHelper doesn't handle optionValueField and optionLabelField for array options

Alexander Schnitzler 02/14/15, 17:31 updated 09/23/15, 22:48

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.

Reviews 3