Actions
Bug #76388
closedFormEngine validation fails to properly set minitems and maxitems for IRRE when min=max=1
Status:
Closed
Priority:
Must have
Assignee:
Category:
FormEngine aka TCEforms
Target version:
Start date:
2016-05-31
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:
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.
Actions