Issue Bug New Orphaned

#102889IRRE elements with maxitems / minitems invalid in workspaces

Thomas Löffler 01/22/24, 11:49 updated 01/22/24, 11:49

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”

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] IRRE elements with maxitems / minitems invalid in workspaces Resolves: #102889 Releases: main