Issue Bug Closed

#76689Multiple Select within a Section

Jonathan Starck 06/17/16, 22:07 updated 06/22/16, 12:00

Description

Hi,

I tried to create in the Extension “DCE” a “multiple select”-Field within a section.

<config>
    <type>select</type>
    <items type='array'>
        <numIndex index='0' type='array'>
            <numIndex index='0'>Label A</numIndex>
            <numIndex index='1'>0</numIndex>
        </numIndex>
        <numIndex index='1' type='array'>
            <numIndex index='0'>Label B</numIndex>
            <numIndex index='1'>1</numIndex>
        </numIndex>
    </items>
    <size>5</size>
    <minitems>1</minitems>
    <maxitems>2</maxitems>
</config>

And get following error:

#1: PHP Warning: in_array() expects parameter 2 to be array, null given in [...]/typo3_src/TYPO3.CMS/typo3/sysext/backend/Classes/Form/Element/SelectMultipleSideBySideElement.php line 103

I still tried some other variations but every time I get similar errors.
This is not trade to be an error in the extension.

Reviews 0

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