Bug #76388
closedFormEngine validation fails to properly set minitems and maxitems for IRRE when min=max=1
100%
Description
\TYPO3\CMS\Backend\Form\AbstractNode::getValidationDataAsJsonString()
contains this code:
if ($config['renderType'] !== 'selectTree' && $maxItems <= 1 && $minItems > 0) { $validationRules[] = array( 'type' => $type, 'minItems' => 1, 'maxItems' => 100000 ); } else { $validationRules[] = array( 'type' => $type, 'minItems' => $minItems, 'maxItems' => $maxItems ); }
which is also called for inline records.
TCA type inline has no "renderType" definition, hence the first if branch is entered for the case when min=max=1.
Updated by Gerrit Code Review over 8 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/48415
Updated by Gerrit Code Review over 8 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/48415
Updated by Gerrit Code Review over 8 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48415
Updated by Gerrit Code Review over 8 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48451
Updated by Markus Klein over 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 57a7f76f0a7a958eb3c5c144fc29d46bc477c9c7.