Bug #94110
closedTCA setting minitems + maxitems to 1 causing all validations to fail
100%
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
Updated by Sebastian Swan over 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.
Updated by Gerrit Code Review over 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
Updated by Gerrit Code Review over 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
Updated by Gerrit Code Review over 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
Updated by Andreas Fernandez over 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 7687050d0b376431c1d5c655c858fca346ef30ac.
Updated by Oliver Bartsch over 3 years ago
- Related to Bug #94508: BE form validation was skipped using the save and close button added
Updated by Georg Ringer 5 months ago
- Related to Bug #94090: Unexpected form validation with fal image added