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

Saving with invalid data makes blueprint fields disappear #2068

Closed
NicoHood opened this issue Feb 15, 2021 · 4 comments
Closed

Saving with invalid data makes blueprint fields disappear #2068

NicoHood opened this issue Feb 15, 2021 · 4 comments
Assignees

Comments

@NicoHood
Copy link

  • Create a new page blueprint and add some fields (I've used inheritance, if that matters)
  • Set some fields to required
  • Go to admin panel and create a new page
  • Enter some data, but not the required field
  • Save
  • You will get a few errors, but the additional blueprint fields disappeared.
  • Save again
  • The fields are there again, but some data is lost (not all for some reason)
@mahagr mahagr self-assigned this Feb 15, 2021
@mahagr
Copy link
Member

mahagr commented Feb 16, 2021

I had to manually remove the required attribute from the form field, but even then I'm not able to reproduce the issue. All fields are there and filled up with the content I wrote.

You need to give me a specific example. Also, are the fields coming from a plugin or from the form definition?

@NicoHood
Copy link
Author

This sample should work (its a stripped down version of my real file):
https://gist.github.com/NicoHood/74573cb550deaa36c3768a8ed13686b8

I've added this to /themes/quark/blueprints/bikefitter2.yaml

Check, if that helps to reproduce.

@mahagr
Copy link
Member

mahagr commented Feb 17, 2021

Yup, I'm able to reproduce the issue now.

@mahagr
Copy link
Member

mahagr commented Feb 17, 2021

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