InputType select with multiple enabled, resets on new element add
Closed this issue · 1 comments
rorych commented
Hi there
We tested this with two different Contao installations, both up to date (as of today).
If we add the element below, we can fill out the input-fields correctly once, but as soon as i save it the first time, it "breaks". Meaning, if i then add a new list-element, all the selected options of the following list-elements change.
Is the usage of a select InputType with multiple=true even supported?
If it is supported, can you test this and maybe find out, why it is happening?
<?php
return array(
'label' => array(
'Element Name',
''
),
'types' => array(
'content'
),
'contentCategory' => 'texts',
'standardFields' => array(
'cssID'
),
'fields' => array(
'boxes' => array(
'label' => array(
'Textzeilen',
''
),
'elementLabel' => '%s. Zeile',
'inputType' => 'list',
'fields' => array(
'title' => array(
'label' => array(
'Titel',
''
),
'inputType' => 'text',
'eval' => array(
'tl_class' => 'w50'
)
),
'license' => array(
'label' => array(
'Lizenz',
''
),
'inputType' => 'select',
'options' => array(
'simple' => 'Simple',
'medium' => 'Medium',
'max' => 'Max',
),
'eval' => array(
'multiple' => true,
'chosen' => false,
'tl_class' => 'w50'
)
)
)
)
)
);
ausi commented
Fixed in version 2.2.11