[BUGFIX] Unified maxitems default value for group fields
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Form / FormEngine.php
index 062ddef..65878be 100644 (file)
@@ -2415,10 +2415,7 @@ TBE_EDITOR.customEvalFunctions[\'' . $evalData . '\'] = function(value) {
                $internal_type = $config['internal_type'];
                $show_thumbs = $config['show_thumbs'];
                $size = isset($config['size']) ? (int)$config['size'] : 5;
-               $maxitems = MathUtility::forceIntegerInRange($config['maxitems'], 0);
-               if (!$maxitems) {
-                       $maxitems = 100000;
-               }
+               $maxitems = MathUtility::forceIntegerInRange($config['maxitems'], 1);
                $minitems = MathUtility::forceIntegerInRange($config['minitems'], 0);
                $allowed = trim($config['allowed']);
                $disallowed = trim($config['disallowed']);