Project

General

Profile

Actions

Bug #19613

closed

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

Added by Dmitry Dulepov about 16 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-11-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

<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)


Files

ghost-items.png (25.7 KB) ghost-items.png Administrator Admin, 2008-11-14 11:57
9795.diff (709 Bytes) 9795.diff Administrator Admin, 2008-11-14 12:04
Actions #1

Updated by Steffen Kamper about 16 years ago

solution looks good!

Actions #2

Updated by Christian Kuhn over 15 years ago

+1 on testing in 4.2

Actions #3

Updated by Dmitry Dulepov about 15 years ago

rev 6295 and 6294

Actions

Also available in: Atom PDF