#67794Wrong validation of select fields in Backend
Description
After I updated my typo3 to 7.4-dev I can’t choose the Backend layout field anymore.
I still can select the entries with id 0 and 1, but not anything above uid 1, it will prevent the form from saving.
I tracked the issue down to here: typo3/sysext/backend/Resources/Public/JavaScript/FormEngineValidation.js Line 91.
It will check minItems and maxItems and validate it against the item uid instead of the item count.
I solved it on my plattform with replacing
if (selected < rule.minItems || selected > rule.maxItems) {
with
if (selected.length < rule.minItems || selected.length > rule.maxItems) {
This was introduced on 3. May with 74d875c4fb3044ceff98549b8014391bc37506dd