Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Allow using value as a field handle #10462

Merged
merged 2 commits into from
Jul 16, 2024
Merged

Conversation

duncanmcclean
Copy link
Member

This pull request fixes an issue where it wasn't possible to use value as a field handle, due to the fact that augmentation was calling the ->value() method on the entry (which errored, due to not enough parameters being provided).

This PR fixes that by adding value to an "allow list" we have for field handles which match methods on data objects.

Fixes #2495.

@duncanmcclean duncanmcclean marked this pull request as ready for review July 16, 2024 14:01
@jasonvarga jasonvarga merged commit a074cb4 into 5.x Jul 16, 2024
18 checks passed
@jasonvarga jasonvarga deleted the allow-fields-called-value branch July 16, 2024 14:09
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.

Entry Field with Slug "value" Breaks Statamic
2 participants