Skip to content

[6.x] Fix element selector modal source validation#18915

Merged
riasvdv merged 3 commits into
6.xfrom
rias/cms-2106-6x-the-sources-field-must-be-an-array
May 19, 2026
Merged

[6.x] Fix element selector modal source validation#18915
riasvdv merged 3 commits into
6.xfrom
rias/cms-2106-6x-the-sources-field-must-be-an-array

Conversation

@riasvdv
Copy link
Copy Markdown
Contributor

@riasvdv riasvdv commented May 18, 2026

Description

Fixes element selector modal body requests so the sources parameter may be posted as either an array or a string, matching the 5.x behavior where non-array source values were passed through and treated as unrestricted sources. Adds regression coverage for string sources values while preserving validation for invalid non-string/non-array payloads.

Related issues

Fixes #18913

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 18, 2026

CMS-2106

@riasvdv riasvdv marked this pull request as ready for review May 18, 2026 14:50
@riasvdv riasvdv requested a review from brandonkelly May 18, 2026 14:50
@riasvdv riasvdv merged commit 362e3a1 into 6.x May 19, 2026
17 checks passed
@riasvdv riasvdv deleted the rias/cms-2106-6x-the-sources-field-must-be-an-array branch May 19, 2026 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant