Project

General

Profile

Actions

Bug #94110

closed

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

Added by Anonymous almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Target version:
-
Start date:
2021-05-11
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #94508: BE form validation was skipped using the save and close buttonClosed2021-07-08

Actions
Actions #1

Updated by D. Kassor almost 3 years ago

  • Category set to Backend JavaScript
Actions #2

Updated by Sebastian Swan almost 3 years ago

I'm having the same issue. I have a content element with several required text fields and a required FAL image field. Once I select an image, the required mark/check for the other fields disappears and I'm able to save the TCA-Form even though they are still empty.

I did a quick check and it seems this was introduced with 10.4.13, as it is still working when I downgrade to 10.4.12.

Actions #3

Updated by Andreas Kienast almost 3 years ago

  • Status changed from New to Accepted
Actions #4

Updated by Gerrit Code Review almost 3 years ago

  • Status changed from Accepted 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 https://review.typo3.org/c/Packages/TYPO3.CMS/+/69265

Actions #5

Updated by Gerrit Code Review almost 3 years ago

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

Actions #6

Updated by Gerrit Code Review almost 3 years ago

Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/69273

Actions #7

Updated by Andreas Fernandez almost 3 years ago

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

Updated by Oliver Bartsch almost 3 years ago

  • Related to Bug #94508: BE form validation was skipped using the save and close button added
Actions #9

Updated by Benni Mack over 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF