Re-order children incompatibility with content_moderation
Problem/Motivation
When using content moderation module, editors are unable to order children if the node is in draft revision.
Steps to reproduce
- Install standard profile
- Install entity_hierarchy and content_moderation
- Enable the default workflow for the basic page
- Add a parent field to the basic page
- Create a few nodes in hierarchy, all published
- Check the /node/TOPNID/children - looks ok.
- Create a new version of top page in draft
- Check the /node/TOPNID/children - unable to order the children (there are none shown).
- Publish the top page
- Check the /node/TOPNID/children - looks ok again.
Proposed resolution
I'm still getting my head around how EH works with revisions (eg the moveChildren() method that is called on entity update). I guess there is a case for being able to order the children of the current published version OR the latest draft version. In any case, having no children showing creates a lot of uncertainty for editors.
Remaining tasks
User interface changes
API changes
Data model changes
Edited by drupalbot