Issue Bug Accepted Orphaned

#95010eval required broken for selectMultipleSideBySide

Henrik Elsner 08/27/21, 06:45 updated 03/21/25, 21:41

Description

I got a selectMultipleSideBySide field which provides a selection of locations.
This field is required via `‘eval’ => ‘required’`

There seems to be an issue that got introduce within the last ~4 versions of v10.4 i guess.
Even if something is selected, the field is marked as required. (see Screenshot)

The workaround for the Moment:
  • you can add and remove (or the other way round) an item to get rid of the
  • switch to `‘minitems’ => 1`

My config for testing:

'locations' => [
            'exclude' => 1,
            'label' => 'Standorte',
            'config' => [
                'type' => 'select',
                'renderType' => 'selectMultipleSideBySide',
                'eval' => 'required',
                'items' => [
                    ['Nürnberg 90439', 'Nürnberg 90439'],
                    ['Fürth 90762', 'Fürth 90762'],
                    ['Bamberg 96052', 'Bamberg 96052'],
                    ['Erlangen 91056',  'Erlangen 91056'],
                    ['Regensburg 93047', 'Regensburg 93047'],
                ],
            ],
        ],

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] eval required broken for selectMultipleSideBySide Resolves: #95010 Releases: main