Project

General

Profile

Actions

Bug #67794

closed

Wrong validation of select fields in Backend

Added by Silvia Bigler almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Backend User Interface
Target version:
Start date:
2015-06-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Remote Sprint

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

Actions

Also available in: Atom PDF