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

Text fields stay empty with multiple select #80

Closed
laufhannes opened this issue Jul 3, 2020 · 3 comments
Closed

Text fields stay empty with multiple select #80

laufhannes opened this issue Jul 3, 2020 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@laufhannes
Copy link

I'm using the multi column wizard with text fields, checkboxes and a select (with multiple=true). But as soon as I allow multiple fields for the select menu, text fields won't be saved (they stay empty; the same applies for single-value selects via foreignKey). The multi select (and checkboxes) are handled correctly.

Example dca:

$GLOBALS['TL_DCA']['tl_my_table']['fields']['my_multi_field'] = array
(
  'exclude' => true,
  'inputType' => 'multiColumnWizard',
  'eval' => array(
    'mandatory'=> true,
    'columnFields' => array(
      'multi_time' => array(
        'inputType' => 'text',
        'default' => '10:00',
        'eval' => array('maxlength' => '5', 'style' => 'width:50px;'),
      ),
      'multi_ak' => array(
        'inputType' => 'select',
        'multiple' => true,
        'options' => array('A', 'B', 'C'),
        'eval' => array('multiple' => true, 'size' => 6),
      )
    )
  ),
);

Any value entered for multi_time will be lost after saving.

Contao 4.8.8, PHP 7.1.33, MCW 3.4.4, only a few other extensions (Gallery Creator Bundle, psi/boxes4ward, + custom modules that should not affect MCW here).

@zonky2 zonky2 added the bug Something isn't working label Jul 3, 2020
@zonky2 zonky2 added this to the 3.4.5 milestone Jul 3, 2020
@zonky2
Copy link
Contributor

zonky2 commented Jul 3, 2020

Hi @laufhannes its possible to you to send a fix as PR?

@laufhannes
Copy link
Author

laufhannes commented Jul 3, 2020

I did not manage to fix this when opening the issue.

Now I've found https://community.contao.org/de/showthread.php?66727-multiColumnWizard-mit-multiple-select&p=440426&viewfull=1#post440426 which helps me - I guess that has to be solved in the Core Bundle.

@zonky2 zonky2 modified the milestones: 3.4.5, 3.4.x Sep 9, 2020
zonky2 added a commit to zonky2/contao-multicolumnwizard-bundle that referenced this issue Sep 9, 2020
@zonky2
Copy link
Contributor

zonky2 commented Sep 9, 2020

fixed in https://github.com/menatwork/contao-multicolumnwizard-bundle/pull/87

but see contao/contao#2271

@zonky2 zonky2 modified the milestones: 3.4.x, 3.4.7 Sep 9, 2020
@zonky2 zonky2 closed this as completed Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants