Bug #69490
closedNew FormEngineValidation breaks the multiple selection for renderMode 'singlebox'
100%
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.
Updated by Mathias Brodala about 9 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
Updated by Gerrit Code Review about 9 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
Updated by Gerrit Code Review about 9 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
Updated by Mathias Brodala about 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset afe8432c547383c5fb7a622ec32091ce300d6ad6.
Updated by Anja Leichsenring almost 9 years ago
- Sprint Focus deleted (
On Location Sprint)
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed