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

Author isn't a reserved field name, but it should be #5964

Closed
jakedohm opened this issue Apr 23, 2020 · 2 comments
Closed

Author isn't a reserved field name, but it should be #5964

jakedohm opened this issue Apr 23, 2020 · 2 comments

Comments

@jakedohm
Copy link

Description

Currently you can create a field with the handle author and add it to an entry, which can cause confusion because it will conflict with the default author alias to getAuthor(). I've done this twice in the past week, which says more about me than Craft 😂

Steps to reproduce

  1. Create a field called author
  2. Add it to an entry
  3. Call entry.author assuming you'll be accessing your field, and be very confused 😄

Additional info

  • Craft version: 3.4
@brandonkelly
Copy link
Member

See #2797

@brandonkelly
Copy link
Member

For posterity, this is resolved for Craft 3.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants