Deleting a parent page will create inconsistent data

Created on 19 February 2018, over 7 years ago
Updated 23 July 2023, almost 2 years ago

What are the steps required to reproduce the bug?

  1. Install a new Drupal 8.4 site and enable book module.
  2. Create a book
  3. Create 3 pages in this hierarhy:
  4. Remove the parent element from the outline (on my image the Page 1)

What behavior were you expecting?
I think if you delete a parent, move the child one deph up. So it shoud be look like this:
Book
- Page 1.1
- Page 2

What happened instead?
Here are the images from the book (root) and the pages:


But the page 1.1:

Broken navigation, it's not under the book only from the current page, so deleted parent's child will be lost, and buggy.

πŸ› Bug report
Status

Postponed

Version

11.0 πŸ”₯

Component
BookΒ  β†’

Last updated 1 day ago

  • Maintained by
  • πŸ‡ΊπŸ‡ΈUnited States @pwolanin
Created by

πŸ‡§πŸ‡ͺBelgium golddragon007

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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