Revert "[BUGFIX] Unified maxitems default value for group fields" 18/31818/3
authorWouter Wolters <typo3@wouterwolters.nl>
Fri, 25 Jul 2014 16:03:27 +0000 (18:03 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 20 Aug 2014 18:07:59 +0000 (20:07 +0200)
Unexpected behaviour. Default of maxitems in now 1 by default
which doesn't work if you need more items. Previously this
was possible. Revert this to have the old working
behaviour again.

Releases: 6.3,6.2
Resolves: #60263
Reverts: #55731
This reverts commit c578d47617f803c9ea167d88000e63a92c13fa93.

Change-Id: Ice5357aecb1969f11c6821cb81824d2d68200717
Reviewed-on: http://review.typo3.org/31818
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Form/FormEngine.php

index 304c3a4..931f06b 100644 (file)
@@ -2637,7 +2637,10 @@ TBE_EDITOR.customEvalFunctions[\'' . $evalData . '\'] = function(value) {
                $config = $PA['fieldConf']['config'];
                $show_thumbs = $config['show_thumbs'];
                $size = isset($config['size']) ? (int)$config['size'] : 5;
-               $maxitems = MathUtility::forceIntegerInRange($config['maxitems'], 1);
+               $maxitems = MathUtility::forceIntegerInRange($config['maxitems'], 0);
+               if (!$maxitems) {
+                       $maxitems = 100000;
+               }
                $minitems = MathUtility::forceIntegerInRange($config['minitems'], 0);
                $allowed = trim($config['allowed']);
                $disallowed = trim($config['disallowed']);