Skip to content

[4.x] Add validation replacements to replicator and grid field types - #10064

Closed
florianbrinkmann wants to merge 1 commit into
statamic:4.xfrom
florianbrinkmann:add-validator-replacements-to-replicator-and-grid
Closed

florianbrinkmann wants to merge 1 commit into
statamic:4.xfrom
florianbrinkmann:add-validator-replacements-to-replicator-and-grid

Conversation

@florianbrinkmann

@florianbrinkmann florianbrinkmann commented May 14, 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

@duncanmcclean duncanmcclean changed the title [4.x] add validation replacements to replicator and grid field types [4.x] Add validation replacements to replicator and grid field types May 14, 2024
@duncanmcclean

Copy link
Copy Markdown
Member

We're no longer accepting fixes to 4.x, can you re-target this PR for 5.x?

@jasonvarga jasonvarga left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

☝️ What Duncan said.

@jasonvarga

Copy link
Copy Markdown
Member

If this is still important for you, please feel free to update this PR to target 5.x and we can reopen. Or, open a fresh PR. Up to you. Thanks!

@jasonvarga jasonvarga closed this May 28, 2024
@florianbrinkmann

Copy link
Copy Markdown
Contributor Author

Will update it next week

@florianbrinkmann

Copy link
Copy Markdown
Contributor Author

I created a new PR, because it seems I cannot re-target the existing one #10255

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.

3 participants