I've got a nice comprehensive Page Builder-type Neo field on a client's site, and occasionally when editing a newly-created entry, I get an error 500. In dev tools, the Network panel reveals the Fetch request and response:
Seriously, it's something to do with the entry only being an unsaved Draft... if I first save the entry (despite the Neo field not being valid, as far as required fields being filled out), then the error does not occur.
For what it's worth, the Neo field blocks I'm dealing with are as follows:
A "Columns" container, which starts out with a mandatory minimum of two "Column" child blocks. Each "Column" block has a number of child blocks (so 3rd-level deep now?), such as Heading, Text, Image, etc.
And here's the continuation right where the previous video ended, showing the same action working correctly if I try to save the entry first—even when the entry has invalid fields and doesn't properly save.
Bug Description
I've got a nice comprehensive Page Builder-type Neo field on a client's site, and occasionally when editing a newly-created entry, I get an error 500. In dev tools, the Network panel reveals the Fetch request and response:
Steps to reproduce
A "Columns" container, which starts out with a mandatory minimum of two "Column" child blocks. Each "Column" block has a number of child blocks (so 3rd-level deep now?), such as Heading, Text, Image, etc.
Here's a video of the error happening:
https://github.com/spicywebau/craft-neo/assets/1027523/c7e3220e-4c21-407b-a377-f86a0c544af1
And here's the continuation right where the previous video ended, showing the same action working correctly if I try to save the entry first—even when the entry has invalid fields and doesn't properly save.
https://github.com/spicywebau/craft-neo/assets/1027523/d5ab9b18-4474-4752-bfd4-1e207177672f
Expected behaviour
No response
Neo version
4.2.1
Craft CMS version
4.9.6
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