Skip to content

[6.x] Fix link fieldtype ignoring sometimes validator#14985

Merged
jasonvarga merged 2 commits into
statamic:6.xfrom
lazerg:fix/issue-13922-link-sometimes-validator
Jul 13, 2026
Merged

[6.x] Fix link fieldtype ignoring sometimes validator#14985
jasonvarga merged 2 commits into
statamic:6.xfrom
lazerg:fix/issue-13922-link-sometimes-validator

Conversation

@lazerg

@lazerg lazerg commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

The Link fieldtype was not accounting for the sometimes validator when determining the initial option fallback. Fields with the sometimes rule are conditionally required and should fallback to null, not 'url'.

Fixes #13922

@lazerg lazerg changed the title Fix link fieldtype ignoring sometimes validator [6.x] Fix link fieldtype ignoring sometimes validator Jul 12, 2026
…ing rule check

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@jasonvarga jasonvarga merged commit af0f318 into statamic:6.x Jul 13, 2026
19 checks passed
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.

The link fieldtype ignores the sometimes validator

2 participants