Project

General

Profile

Actions

Bug #69490

closed

New FormEngineValidation breaks the multiple selection for renderMode 'singlebox'

Added by Stefan Berger over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Category:
FormEngine aka TCEforms
Target version:
Start date:
2015-09-03
Due date:
% Done:

100%

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

Description

I use a simple select TCA form element configured to be multiple selected.

Here an example TCA:

return array(
    'columns' => array(
        'type' => array(
            'exclude' => 1,
            'label' => 'type',
            'config' => array (
                'type' => 'select',
                'multiple' => 1,
                'size' => 7,
                'minitems' => 0,
                'maxitems' => 7,
                'renderMode' => 'singlebox',
                'items' => array (
                    array('type.1', '1'),
                    array('type.2', '2'),
                    array('type.3', '3'),
                    array('type.4', '4'),
                    array('type.5', '5'),
                    array('type.6', '6'),
                    array('type.7', '7'),
                ),
            )
        ),
    ),
)

When I select more than one option all options will be deselected. This behavior also exists on loading the form element, when more the one option should be preselected.

Quick debuggings shows in typo3/sysext/backend/Resources/Public/JavaScript/FormEngineValidation.js that calling the function FormEngineValidation.validate() in FormEngineValidation.initialize and FormEngineValidation.registerReady will lead to that mentioned problem.

Commenting out the code in FormEngineValidation.validate will solve the problem, but of course that’s not the solution.

Actions #1

Updated by Mathias Brodala over 8 years ago

  • Category set to FormEngine aka TCEforms
  • Target version changed from 7.4 (Backend) to 7.5
  • Sprint Focus set to On Location Sprint
Actions #2

Updated by Mathias Brodala over 8 years ago

  • Assignee set to Mathias Brodala
Actions #3

Updated by Gerrit Code Review over 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43343

Actions #4

Updated by Gerrit Code Review over 8 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43343

Actions #5

Updated by Mathias Brodala over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Anja Leichsenring over 8 years ago

  • Sprint Focus deleted (On Location Sprint)
Actions #7

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF