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

When removing a field from the layout of an entry type, the field is still accessible #1898

Closed
Luuc15 opened this issue Aug 3, 2017 · 1 comment

Comments

@Luuc15
Copy link

Luuc15 commented Aug 3, 2017

Description

When removing a field from the layout of an entry type, the field is still accessible.

Steps to reproduce

  1. Add a field to a sections entry type layout
  2. Fill in the field when editing an entry with that entry type
  3. Display the content of the field in a template (like {{ entry.mycustomfield }} )
  4. Remove the field from the layout of the entry type, but do not delete the field in the overview with all fields.
  5. When displaying the template again the field is still accessible

What would be logical is that the field does not exist anymore for the entry and the content is removed.

Additional info

  • Craft version: 3.0.0-beta.23 - 2017-07-28
  • PHP version: 7.0.15
  • Database driver & version: Mysql version 5.6.35
  • Plugins & versions: No plugins
@brandonkelly
Copy link
Member

This is intended behavior (for now), but will change when we implement #1524.

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