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

Neo Not Saving Changes to Field Layout #869

Closed
brianrivet-tilt opened this issue Mar 25, 2024 · 2 comments
Closed

Neo Not Saving Changes to Field Layout #869

brianrivet-tilt opened this issue Mar 25, 2024 · 2 comments

Comments

@brianrivet-tilt
Copy link

Bug Description

I noticed that Neo isn't saving changes to my field layout. I can remove a field from a block's layout and if I hit the save button and then go back to the same block, the field I removed is still there even though the notification says the field changes were saved.

Steps to reproduce

  1. Remove a field from a block's field layout.
  2. Save the field.
  3. Check the block type again after saving and the field you removed is still there.

Expected behaviour

No response

Neo version

4.0.8

Craft CMS version

4.8.5

What is the affected Neo field's propagation method?

No response

Does this issue involve templating, and if so, is eager-loading used?

This is not a templating issue

@ttempleton
Copy link
Contributor

Removing a field from a block type's field layout is working as expected for me. If possible, could you please send your composer files and database backup to plugins@spicyweb.com.au and let us know which Neo field and block type this is happening with, and we'll have a look.

@ttempleton ttempleton added bug report status: unconfirmed A bug report that has not yet been reproduced by the maintainer(s), and more information is required and removed bug report status: new labels Mar 26, 2024
@ttempleton ttempleton added bug report status: fixed and removed bug report status: unconfirmed A bug report that has not yet been reproduced by the maintainer(s), and more information is required labels Mar 27, 2024
@ttempleton
Copy link
Contributor

Thanks for sending those files. That block type and a few others shared the same field layout, which is puzzling and a little concerning. I have added a console command for the next release (php craft neo/block-types/fix-field-layouts) to duplicate the field layout so each block type gets its own version. If you'd like to apply that fix before the next release, set your composer.json file's spicyweb/craft-neo requirement to 4.x-dev as 4.0.8 and run composer update.

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