Project

General

Profile

Actions

Bug #83457

closed

TCA renderType selectCheckBox didn't check minitems

Added by Tobias Klepp over 6 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Start date:
2018-01-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I configured my extension table with a mm relation fiedl and used the renderType selectCheckBox and a configuration for minitems = 1, but you can save the record in the backend without a warning. No error message / info is displayed.

My TCA configuration:

'config' => [
  'type' => 'select',
  'renderType' => 'selectCheckBox',
  'foreign_table' => 'tx_extkey_table',
  'foreign_table_where' => 'AND tx_extkey_table.sys_language_uid IN (-1,0) ORDER BY tx_extkey_table.title',
  'minitems' => 1,
  'MM' => 'tx_extkey_table_mm',
],

Related issues 3 (2 open1 closed)

Related to TYPO3 Core - Bug #79525: No Validation for required checkboxesNew2017-01-29

Actions
Related to TYPO3 Core - Bug #84012: Toggle all function at TCA control selectCheckBox ignores 'onChange' => 'reload'New2018-02-22

Actions
Has duplicate TYPO3 Core - Bug #93191: FormEngine validation is broken with selectMultipleSideBySideClosedAndreas Kienast2020-12-31

Actions
Actions #1

Updated by Tobias Klepp over 6 years ago

  • Related to Bug #79525: No Validation for required checkboxes added
Actions #2

Updated by Steffen Kamper over 6 years ago

any JS-errors?
If possible please provide a little demo extension

Actions #3

Updated by Tobias Klepp over 6 years ago

No. I get no JS error.

Actions #4

Updated by Riccardo De Contardi over 6 years ago

I copy my description from #79525 ; that should be sufficient to reproduce it:

1) Install styleguide extension
2) create a new item Styleguide > Form engine - required
3) Go to tab "Select"

if you look at the section "select_4 selectCheckBox, minitems=1, maxitems=2":

1) there is no error message or red outline
2) if you compile all the fields except that one, you can save the item

Actions #5

Updated by Susanne Moog about 6 years ago

  • Category set to FormEngine aka TCEforms
Actions #6

Updated by Gernot Ploiner about 6 years ago

I can confirm this. The same problem exists with maxitems in this case.

Actions #7

Updated by Jan-Henrik Hempel about 6 years ago

  • Related to Bug #84012: Toggle all function at TCA control selectCheckBox ignores 'onChange' => 'reload' added
Actions #8

Updated by Jan-Henrik Hempel about 6 years ago

We can confirm this issue as well. We currently use TYPO3 8.7.9.

Actions #9

Updated by Bernhard Berger about 5 years ago

I just stumbled upon this issue in 8.7.24.. so still there unfortunately :/

Actions #10

Updated by Benni Mack about 5 years ago

  • Target version changed from next-patchlevel to Candidate for patchlevel
Actions #11

Updated by Florian Rival almost 5 years ago

  • TYPO3 Version changed from 8 to 9
  • PHP Version changed from 7.0 to 7.2

Same problem for me with Typo3 V9.
SelectBox is not mandatory and there's no exclamation mark nor message when nothing selected.

Sample TCA code :

'affiliate_office' => [
    'exclude' => false,
    'label' => 'Affilliate office',
    'config' => [
        'type' => 'select',
        'renderType' => 'selectCheckBox',
        'items' => [
            ['Office 1', 1],
            ['Office 2', 2],
            ['Office 3', 3],
            ['Office 4', 4],
        ],
        'size' => 4,
        'minitems' => 1,
        'maxitems' => 99,
        'eval' => 'required'
    ],
],
Actions #12

Updated by Andreas Kienast over 3 years ago

Sorry folks, I didn't find this ticket earlier and thus created a new one #93191, which also contains a patch for this issue.

Actions #13

Updated by Andreas Kienast over 3 years ago

  • Has duplicate Bug #93191: FormEngine validation is broken with selectMultipleSideBySide added
Actions #14

Updated by Andreas Kienast over 3 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF