Reordering children overrides their drafts

Created on 15 December 2020, almost 5 years ago
Updated 27 October 2025, 15 days ago

Problem/Motivation

With content moderation enabled, it is possible that a future draft of a node could exist.
If the node ordering is changed for this node from its parent's 'reorder children tab' then reordering will cause the changes in the draft to be discarded (retained, but in an old revision)

Steps to reproduce

Enable content moderation and the default workflow
Add a node type
Enable the workflow for this node type
Enable entity hierarchy
Add a parent field on this node type using entity hierarchy
Save a node as parent
Save a node as its child
Save another node as its child
Save a draft of the second child with edits
Visit the 'reorder children' page for the parent
Reorder the children
Visit the second child and note that the draft has been discarded

Proposed resolution

Add support for 'recreating drafts' before re-order ala Scheduled Transitions

Remaining tasks

Code
Tests
Reviews

User interface changes

An additional checkbox for 'recreate drafts' on the re-order page

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code (module)

Created by

πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024