Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputType select with multiple enabled, resets on new element add #112

Closed
rorych opened this issue Aug 13, 2019 · 1 comment
Closed

InputType select with multiple enabled, resets on new element add #112

rorych opened this issue Aug 13, 2019 · 1 comment
Assignees
Labels

Comments

@rorych
Copy link

rorych commented Aug 13, 2019

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 ausi self-assigned this Aug 13, 2019
@ausi ausi added the bug label Aug 13, 2019
@ausi ausi closed this as completed in 5cf2b66 Aug 13, 2019
@ausi
Copy link
Member

ausi commented Aug 13, 2019

Fixed in version 2.2.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants