Skip to content

[6.x] Fix clipboard pasting of validation rules#14754

Merged
jasonvarga merged 2 commits into
6.xfrom
fix-validation-rule-pasting
Jun 2, 2026
Merged

[6.x] Fix clipboard pasting of validation rules#14754
jasonvarga merged 2 commits into
6.xfrom
fix-validation-rule-pasting

Conversation

@joshuablum

Copy link
Copy Markdown
Member

Pasting a validation rule such as mimes:jpg,jpeg,png,webp into a validation rules field (general blueprint or asset container config) split it on every comma resulting in four separate and wrong rules instead of one. The reason is that Combobox's paste handler always splits the pasted text on commas when taggable is true. Typing the rule by hand works fine.

Behavior now:

  • Pasting mimes:jpg,jpeg,png,webp is one rule.
  • Pasting required|mimes:jpg,jpeg,png,webp is two rules.
  • Fixed in both places (general blueprints and the asset container config).
  • Regular tags fields keep splitting on commas as before.

Closes #14750.

@jasonvarga jasonvarga merged commit 75e8ffd into 6.x Jun 2, 2026
19 checks passed
@jasonvarga jasonvarga deleted the fix-validation-rule-pasting branch June 2, 2026 19:48
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.

Copy & Paste validation rules in asset container separates rule in CP and yaml-file.

2 participants