Skip to content

[5.x] Add validation replacements to replicator and grid field types - #10255

Merged
jasonvarga merged 5 commits into
statamic:5.xfrom
florianbrinkmann:add-validator-replacements-to-replicator-and-grid
Dec 5, 2024
Merged

jasonvarga merged 5 commits into
statamic:5.xfrom
florianbrinkmann:add-validator-replacements-to-replicator-and-grid

Conversation

@florianbrinkmann

@florianbrinkmann florianbrinkmann commented Jun 3, 2024 •

Copy link
Copy Markdown
Contributor

Currently it’s not possible to use the validation replacements (for example, validation_rule_handle:{id}) in fields that are part of replicator or grid fields, because the validator instance that is used for the »top-level« fields isn’t the same that’s used for the fields inside the replicator/grid (at least I think that’s the reason).

This PR changes that and adds the replacements for replicator and grid fields, if the parent is an Entry.

Closes #10065
Replaces #10064

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.

Validation replacements for entry field not working inside replicator and grid

2 participants