Project

General

Profile

Actions

Bug #76689

closed

Multiple Select within a Section

Added by Jonathan Starck almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2016-06-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.


Files

screenshot.png (894 KB) screenshot.png Error Jonathan Starck, 2016-06-17 22:07
Actions #1

Updated by Wouter Wolters almost 8 years ago

  • Status changed from New to Needs Feedback

You miss at least <renderType>selectMultipleSideBySide</renderType>

I tried your example in current master and can't reproduce your problem.

Other than that I suggest to use double quotes.

Actions #2

Updated by Jonathan Starck almost 8 years ago

Hi,

Did you tried it with DCE?
I checked out the latest master and tried both variants but getting the same Error...

Related Issue: https://forge.typo3.org/issues/76669

Actions #3

Updated by Wouter Wolters almost 8 years ago

You also miss <multiple>1</multiple> in your code.
I could reproduce your error and with this added the error is gone.

Actions #4

Updated by Jonathan Starck almost 8 years ago

Crazy...
Thank you! It works

Actions #5

Updated by Wouter Wolters almost 8 years ago

  • Status changed from Needs Feedback to Closed

Closing this issue as missing configuration leads to the given problem.

Actions

Also available in: Atom PDF