Project

General

Profile

Actions

Bug #102889

open

IRRE elements with maxitems / minitems invalid in workspaces

Added by Thomas Löffler 3 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2024-01-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Problem

If I have a content element with minitems or maxitems set, the validation does not work in a workspace.

Reproduction

1. Adapt any content element with an included IRRE element to have maxitems = 1
2. Switch to LIVE workspace
3. Create this element, add one IRRE element and save it
4. Switch to non-LIVE workspace
5. Edit this element and change the element (remove the existing one and add another)
6. Save the element
7. Now the content element has two IRRE elements (the old one and the new one), which is correct because it's not published yet. BUT the FormEngineValidation gives me an error

Solution

Validate the IRRE elements only for the elements which are in the same workspace as you're in. If there are three IRRE elements (one from LIVE, one from one workspace, one from another) it should be validated separately as "there is one IRRE element and maxitems, which is fine"

No data to display

Actions

Also available in: Atom PDF