-
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
Child blocks are mixed up on save #745
Comments
If possible, could you please send a database backup and your composer.json/lock files to plugins@spicyweb.com.au, along with an example of an entry that has this issue, and we'll have a look. |
Thanks for sending those @Sjouwke. Unfortunately I haven't been able to reproduce the behaviour yet, but I've seen evidence of it having happened in the entry revisions. At this point I think it might be caused by the issue described in #708 (comment) / #717 where old block structure data from provisional drafts wasn't being cleared out. Newer Neo releases (>= 3.6.3) clear that data out as part of Craft's garbage collection if any still exists - could you please run |
@ttempleton @Sjouwke Maybe related? craftcms/cms#13256 |
@Tim-Wils There have been long-term issues with Preparse Field and Neo compatibility (see jalendport/craft-preparse-field#30, #398 and many other issues linked to that one) to the point that we listed Preparse Field in the plugin incompatibility list for the Craft 3 version of Neo. I'd removed it from that list for the Craft 4 version, and hadn't heard of any issues between the two plugins on Craft 4 until now - but if there are still issues on the Preparse Field end, I'll need to add it back to the list. (Of course, if any issues turn out to be caused by Neo, we'll look into a fix for them.) |
Hey @ttempleton, thanks for having a look. I've ran |
This turned out to be related to merging of live entry content into draft content, where newly-created blocks from the live entry could get merged into the wrong place in the draft block structure. The fix for that will be included in the next release, which will hopefully be after #746 is resolved. In the meantime, you can get that fix by setting your composer.json file's |
Bug Description
Child blocks are mixed up on save. For example:
Suddenly, sub blocks are mixed up. Split block now has 3 children of different types. Testimonials are added to cards. Cards bock only has 1 child, of type testimonial.
This happens on multiple pages.
Steps to reproduce
Expected behaviour
No response
Neo version
3.7.8
Craft CMS version
4.4.10.1
What is the affected Neo field's propagation method?
Save blocks to all sites the owner element is saved in
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: