Issue Bug Closed

#94110TCA setting minitems + maxitems to 1 causing all validations to fail

Anonymous 05/11/21, 15:07 updated 09/07/21, 07:34

Description

Tested on TYPO3 v10.4.15 – no third party Extensions installed

For example:

'header' => [
    'config' => [
        'type' => 'input',
        'eval' => 'required'
    ],
],
'image' => [
    'config' => [
        'minitems' => 1,
        'maxitems' => 1
    ]
]
  • Now add a new content element (for example CType = ‘textpic’ on any page)
  • Select an image
  • Now validation for header or any other validation field will be ignored
  • This is caused by the value ‘minitems’ => 1 and ‘maxitems’ => 1
  • This can be reproduced with any TCA field

Reviews 2