Actions
Bug #76689
closedMultiple Select within a Section
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
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.
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
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.
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