When creating a new Structure Entry, even if a parent Entry is selected in the "Parent" field, the new Entry is created at level 1 and at the bottom of the Structure.
This only applies to new Entries; selecting a parent Entry when editing an existing Entry works as expected.
I've tested this on both 3.4.20 and 3.4.22.1; it does not happen on the former (did not test 3.4.21 or 3.4.22).
The Craft install is not multi-site.
Hey, I can confirm we're also experiencing this after applying recent updates - child items are ending up on top level, triggering template errors, including when disabling/undisabling items. We're on the latest Craft Pro 3.4.22.1.
I've tested this on fresh content blocks - they are okay if you're in the full mode, but if you're in preview mode and save the page with disabled items, the children pop out of the parent by the looks of it.
I鈥檝e narrowed this down to any time a new draft is published (including the initial unsaved draft you get when creating a new entry), the source entry won鈥檛 pick up the new parent specified by the draft.
This is now fixed for the next release.
Craft 3.4.23 is out now with the fix.
Most helpful comment
This is now fixed for the next release.