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

'field' should be a reserved field handle for Matrix fields #4882

Closed
d--j opened this issue Sep 4, 2019 · 1 comment
Closed

'field' should be a reserved field handle for Matrix fields #4882

d--j opened this issue Sep 4, 2019 · 1 comment

Comments

@d--j
Copy link
Contributor

d--j commented Sep 4, 2019

Description

Since Craft 3.3 a MatrixBlock element has a getField method. This shadows any field with handle field in this matrix block.

See #4453, #4754 for similar issues.

Steps to reproduce

  1. Create a Matrix field with a field with handle field.
  2. Try to access the field field in a Twig template.

Additional info

  • Craft version: Craft Pro 3.3.0.1
  • PHP version: 7.2.22
  • Database driver & version: MySQL 5.7.27
  • Plugins & versions: N/A
@brandonkelly
Copy link
Member

There’s no reason that method needed to be public in the first place, so I’ve just made it private for the next release.

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

No branches or pull requests

2 participants