-
Notifications
You must be signed in to change notification settings - Fork 63
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
[Craft 5] If I miss a required field while saving a old entry, the Entry structure breaks #929
Comments
I'm unable to reproduce this - but if you run the Craft |
We tried running the resave for a single entry, but unfortunately, it didn't help with the issue. Is there anything we can provide to help you debug it more effectively? We updated Neo from version 5.0.4 to 5.2.2 and Craft from version 5.2.8 to 5.3.5. Could that cause any problems? |
Hey @ttempleton! I have been playing around with it more and I have found a way to break the structure in also new entries. Maybe this is a new bug or is somehow related to this. Steps to reproduce:
|
Does updating to 5.2.4 and running |
Unfortunately this didn't fix it :(. Tried also 5.2.5 |
I am encountering the same problem :(. |
Hey @kubanedo! If you don't mind, can you send Neo team ([email protected]) your db backup and composer files, so they can look more into it. I have problems sending mine, so I can't unfortunately do it :( |
Yes - could you please send those files in if possible @kubanedo. |
Hey, @krftcz, I see that you added an like, are you experiencing the same issue. If yes, can you maybe send the database and composer files? So they can look into it? @ttempleton also did you test out these steps I mentioned earlier: #929 (comment) |
Thanks @AleksanderKampus1 - I've tried that out with a parent and child block where the child block has the required field, and the parent block has disappeared. I'll assume this is the same bug. |
Hi @AleksanderKampus1 , sorry for the late reply, the requested DB backup was sent to the email address. Hopefully, it will help solve the issue :). Thanks |
Hi @AleksanderKampus1 , do you can think of any workaround we could you in case we would need to deploy our project on production next week and the issue wasn't solved yet? Thanks a lot |
Hey @kubanedo ! Also did you send your composer files with the DB backup? |
Oh, great, will try. Of course I didn't :D. I've sent it now. Thanks |
Hi @AleksanderKampus1, any update? |
Hey @kubanedo ! I am just using |
Thanks for sending the files @kubanedo. I'm unable to reproduce this issue with your DB using the original steps to reproduce for the issue, but I'm going to try to fix the issue from #929 (comment), in case it's the same issue, before I ask for any more info. |
Hey! @ttempleton so I tried out some latest versions and it seems that in 5.2.11 you did something that made things better. Now the structure doesn't get totally jumbled up but what still happens is that the component that had validation error gets set as the most top component. Like lets say I have this kinda structure:
After I fix the validation error the structure gets to set like this:
Hope it helps fixing the problem. I can send a screen recording if it is a bit confusing what I explained. |
I've just released 5.2.13 which fixes the part of this issue that I could reproduce, that I'm hoping also fixes the part I couldn't reproduce. I'll close the issue for now, but let me know if it persists and I'll reopen. |
Bug Description
This bug is related to this bug: #907
While working on a old entry in Craft CMS, let's say I forget inputting a required field (such as component title). When I try to save the entry, I get a validation error. All's good, but now when I fix the validation error and try to save the entry again, something weird happens. The Neo structure breaks.
It's important to note that it only only happens to entries that where saved before updating to Neo 5.2.0. Meaning that when I make a totally new entry everything works. That's why I didn't catch it with the original bug report.
Steps to reproduce
Screen.Recording.Aug.19.1.mov
Here is also a video if I create a new entry:
Screen.Recording.Aug.19.2.mov
Expected behaviour
Neo blocks should maintain the original structure
Neo version
5.2.0
Craft CMS version
5.3.4
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
The text was updated successfully, but these errors were encountered: