Issue Bug Closed

#19613Default values have no labels in the multiple select control inside the flexform

Dmitry Dulepov 11/14/08, 11:57 updated 07/02/10, 11:18

Description

The following perfectly valid flexform definition cause ghost items to appear in the left box of multi–item select control in the flexform (see the screenshot). <option> tags have values but do not have labels.</option>

<field_mode>
    <TCEforms>
        <label>LLL:EXT:mnogosearch/pi1/locallang.xml:mode.label</label>
        <config>
            <type>select</type>
            <items>
                <n0>
                    <n0>LLL:EXT:mnogosearch/pi1/locallang.xml:mode.short-form</n0>
                    <n1>short_form</n1>
                </n0>
                <n1>
                    <n0>LLL:EXT:mnogosearch/pi1/locallang.xml:mode.long-form</n0>
                    <n1>long_form</n1>
                </n1>
                <n2>
                    <n0>LLL:EXT:mnogosearch/pi1/locallang.xml:mode.results</n0>
                    <n1>results</n1>
                </n2>
            </items>
            <default>long_form,results</default>
            <minitems>1</minitems>
            <maxitems>100</maxitems>
            <size>3</size>
            <autoSizeMax>10</autoSizeMax>
            <multiple>1</multiple>
        </config>
    </TCEforms>
</field_mode>

The problem happens because TCEforms expects default items in a different format. Normal TCEform makes a workaround for default values but TCEforms code misses it.

The provided patch solves the issue.

(issue imported from #M9795)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.